We use the dig (domain information groper) command to query Domain Name System (DNS) name servers.
When we pass a domain name to the dig command, by default, it displays the A record (the ip-address of the site that is queried) as shown below:
Gurudattas-MBP:~ gnadig$ dig google.com
; <<>> DiG 9.8.3-P1 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- 13916="" id:="" noerror="" opcode:="" query="" span="" status:="">->
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 54 IN A 74.125.200.138
google.com. 54 IN A 74.125.200.100
google.com. 54 IN A 74.125.200.101
google.com. 54 IN A 74.125.200.139
google.com. 54 IN A 74.125.200.102
google.com. 54 IN A 74.125.200.113
;; Query time: 5 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Oct 14 15:51:42 2016
;; MSG SIZE rcvd: 124
Regards
Gurudatta N.R
No comments:
Post a Comment