I have a list of addresses I need to perform a DNS lookup for. What I need to know is the authoritative server for the domain, and the result of the lookup (A record with IP or CNAME with host).
I tried: dig www.google.co.uk .. and it's not showing me the authoritative servers. So I tried: dig www.google.co.uk +nssearch .. and got a blank response.
Suggestions?
Background: I have a webserver which will shortly be changing it's IP address. It has a local DNS which will be updated as part of the migration so anything which uses that server for authoritative DNS will be updated automatically. However anything on an external DNS may need updating, depending on whether it references the server by CNAME or A record (and if CNAME I need to check that whatever that is gets updated too). So I need to know which addresses still point at the server, and of those which are not in the local DNS and of those which need updating (and where).