cat /etc/resolv.conf
search server.example.com
nameserver 10.0.0.17
cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.0.17 server.example.com
host server.example.com
server.example.com has address 10.0.0.17
dig example.com
Quote:
; <<>> DiG 9.3.4-P1 <<>> example.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14551
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;example.com. IN A
;; AUTHORITY SECTION:
example.com. 86400 IN SOA server.example.com. root.server.example.com. 1997022700 28800 14400 3600000 86400
;; Query time: 29 msec
;; SERVER: 10.0.0.17#53(10.0.0.17)
;; WHEN: Tue Jul 7 00:32:05 2009
;; MSG SIZE rcvd: 77
|