Fixes #2820
Add unit test for ValidateIp4Address
Merge pull request #2821 from jpellerin/2820-fix-daemon-dns

Fixes #2820