Add function to validate IP address before request anything to the DNS server