- 45-
12.2.
Các lệnh và tiện ích hỗ trợ
12.2.1. Lệnh nslookup
#nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> www.dng.vn
Server: 200.201.202.1
Address: 200.201.202.1#53
Name: www.dng.vn
Address: 200.201.202.1
> tankhoi02.edu.vn
Server: 200.201.202.1
Address: 200.201.202.1#53
Name: tankhoi02.edu.vn
Address: 200.201.202.2
12.2.2. Lệnh host
#host tankhoi01.dng.vn
tankhoi01.dng.vn has address 200.201.202.1
12.2.3. Lệnh dig
# dig dng.vn
; <<>> DiG 9.2.1 <<>> dng.vn
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58922
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;dng.vn. IN A
;; AUTHORITY SECTION:
dng.vn. 86400 IN SOA dng. root.localhost.dng.vn. 1 28800 7200
604800 86400
;; Query time: 28 msec
;; SERVER: 200.201.202.1#53(200.201.202.1)
;; WHEN: Mon Mar 22 09:14:13 2004
;; MSG SIZE rcvd: 78
12.2.4. Tiện ích redhat-config-bind
#redhat-config-bind