Update Dns.cpp

valid IP address digits have to be >= 0 AND <= 9
valid IP addresses must have 4 segments