Dig is a linux command which is similor to nslookup command. It also comes under DNS enumeration.
Example:
dig yahoo.com
; <<>> DiG 9.3.3rc2 <<>> yahoo.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39856
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 7, ADDITIONAL: 7
;; QUESTION SECTION:
;yahoo.com. IN A
;; ANSWER SECTION:
yahoo.com. 359 IN A 68.180.206.184
yahoo.com. 359 IN A 206.190.60.37
;; AUTHORITY SECTION:
yahoo.com. 52791 IN NS ns4.yahoo.com.
yahoo.com. 52791 IN NS ns5.yahoo.com.
yahoo.com. 52791 IN NS ns6.yahoo.com.
yahoo.com. 52791 IN NS ns8.yahoo.com.
yahoo.com. 52791 IN NS ns1.yahoo.com.
yahoo.com. 52791 IN NS ns2.yahoo.com.
yahoo.com. 52791 IN NS ns3.yahoo.com.
;; ADDITIONAL SECTION:
ns1.yahoo.com. 52959 IN A 66.218.71.63
ns2.yahoo.com. 52959 IN A 68.142.255.16
ns3.yahoo.com. 52959 IN A 217.12.4.104
ns4.yahoo.com. 52959 IN A 68.142.196.63
ns5.yahoo.com. 66635 IN A 119.160.247.124
ns6.yahoo.com. 17127 IN A 202.43.223.170
ns8.yahoo.com. 52790 IN A 202.165.104.22
;; Query time: 2 msec
;; SERVER: 202.71.152.65#53(202.71.152.65)
;; WHEN: Tue Sep 30 19:38:35 2008
;; MSG SIZE rcvd: 297
Different Types of DNS Records
The following list describes the common DNS record types and their use:
A (address)—Maps a host name to an IP address
SOA (Start of Authority)—Identifies the DNS server responsible for the domain information
CNAME (canonical name)—Provides additional names or aliases for the address record
MX (mail exchange)—Identifies the mail server for the domain
SRV (service)—Identifies services such as directory services
PTR (pointer)—Maps IP addresses to host names
NS (name server)—Identifies other name servers for the domain
No comments:
Post a Comment