Tuesday, December 7, 2010

DNS tools: nslookup and dig

nslookup

list the query type: set q=any (if want to display all)
change the DNS server: server dns_server_ip
list the zone record: ls -d [domain_name]
check ptr: set type=ptr, then type the ip address you want...

dig - DNS lookup utility

SYNOPSIS

dig [ @server ] [ -b address ] [ -c class ] [ -f filename ] [ -k filename ] [ -p port# ] [ -t type ] [ -x addr ] [ -y name:key ] [ name ] [ type ] [ class ] [ queryopt... ]
dig [ -h ]
dig [ global-queryopt... ] [ query... ]

No comments:

Post a Comment