Showing posts with label DNS. Show all posts
Showing posts with label DNS. Show all posts

Tuesday, December 7, 2010

common DNS record type

  1. A: address record
  2. CNAME: Canonical name record
  3. MX: mail exchange record
  4. NS: name server record
  5. PTR: pointer record RFC 1035
  6. TXT (SPF): Sender Policy Framework RFC 4408

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... ]