Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I lookup NS and A at the same time using dig

Is it possible to lookup the A (ip address) and NS (nameservers) of a domain using a single dig command?

I can use dig google.com A +short or dig google.com NS +short but surely it's possible to do it with just one command? If not, is there a similar command that might be able to do this?

Thank you

like image 370
Stevie Avatar asked Dec 12 '10 09:12

Stevie


1 Answers

dig +short ns google.com a google.com
like image 156
Martin v. Löwis Avatar answered Oct 02 '22 06:10

Martin v. Löwis