dig show only answer

I am not sure why you are getting comments in the output. That is the correct set of options for the behaviour you want. Here are the same options with the same version of dig: $ dig -version DiG 9.7.3 $ dig +noall +answer google.de google.de. 55 IN A 173.194.44.216 google.de. 55 IN A 173.194.44.223 … Read more

Force dig to resolve without using cache

You can use the @ syntax to look up the domain from a particular server. If the DNS server is authoritative for that domain, the response will not be a cached result. dig @ns1.example.com example.com You can find the authoritative servers by asking for the NS records for a domain: dig example.com NS