Tutorial ini menunjukkan cara menyelesaikan nama domain pada shell Linux dan bagaimana meng-query server nama untuk berbagai jenis data DNS seperti A, MX dan NS records. Untuk menyelesaikan nama domain pada shell, kita akan menggunakan perintah dig.

# dig NS molaviarman.net

; <<>> DiG 9.10.8-P1 <<>> NS molaviarman.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3268
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;molaviarman.net.		IN	NS

;; ANSWER SECTION:
molaviarman.net.	171535	IN	NS	dns2.masterweb.com.
molaviarman.net.	171535	IN	NS	dns1.masterweb.com.
molaviarman.net.	171535	IN	NS	dns3.masterwebnet.com.

;; Query time: 156 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Aug 13 20:16:12 WIB 2018
;; MSG SIZE  rcvd: 127
# dig MX molaviarman.net

; <<>> DiG 9.10.8-P1 <<>> MX molaviarman.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27294
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;molaviarman.net.		IN	MX

;; ANSWER SECTION:
molaviarman.net.	300	IN	MX	5 alt2.aspmx.l.google.com.
molaviarman.net.	300	IN	MX	10 alt3.aspmx.l.google.com.
molaviarman.net.	300	IN	MX	1 aspmx.l.google.com.
molaviarman.net.	300	IN	MX	5 alt1.aspmx.l.google.com.
molaviarman.net.	300	IN	MX	10 alt4.aspmx.l.google.com.

;; Query time: 869 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Aug 13 20:15:23 WIB 2018
;; MSG SIZE  rcvd: 162
# dig molaviarman.net

; <<>> DiG 9.10.8-P1 <<>> molaviarman.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32672
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;molaviarman.net.		IN	A

;; ANSWER SECTION:
molaviarman.net.	300	IN	A	45.76.148.195

;; Query time: 666 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Mon Aug 13 20:23:29 WIB 2018
;; MSG SIZE  rcvd: 60