Sunday, June 19, 2011

dig - DNS lookup utility


The utility dig can be used to get the information regarding all the aliases for a host

dig - DNS lookup utility

The dig utility (domain information groper)  is  a  flexible tool  for  interrogating  DNS  name servers. It performs DNS lookups and displays the answers that are returned from  the name  server(s) that  were queried. Most DNS administrators use dig to troubleshoot DNS problems because of  its  flexi-bility,  ease  of  use  and  clarity of output. Other lookup tools tend to have less functionality than dig.

dig @ axfr | grep

To get a full listing of all the domain records use "axfr"

(sunstation1:/)# dig @dns2.bc bc axfr | grep zone20
eto_a.bc.               300     IN      CNAME   zone20.bc.
eto_d.bc.               300     IN      CNAME   zone20.bc.
ppc_d.bc.               1800    IN      CNAME   zone20.bc.
swd_a.bc.               300     IN      CNAME   zone20.bc.
trd_a.bc.               300     IN      CNAME   zone20.bc.
trt_a.bc.               1800    IN      CNAME   zone20.bc.
zone20.bc.               1800    IN      A       10.162.14.31
zone20-e1.bc.            1800    IN      A       10.22.131.8
(sunstation1:/)#


No comments:

Post a Comment