"dig" does not auto append the dns-search stuff (the rest of the FQDN). nslookup does.
Example:
Code:
doug@DOUG-64:~$ dig s15
; <<>> DiG 9.10.3-P4-Ubuntu <<>> s15
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6290
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;s15. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2018052500 1800 900 604800 86400
;; Query time: 200 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 25 07:21:41 PDT 2018
;; MSG SIZE rcvd: 107
doug@DOUG-64:~$ nslookup s15
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: s15.smythies.com
Address: 192.168.111.112
doug@DOUG-64:~$ dig s15.smythies.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> s15.smythies.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45975
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;s15.smythies.com. IN A
;; ANSWER SECTION:
s15.smythies.com. 604800 IN A 192.168.111.112
;; AUTHORITY SECTION:
smythies.com. 604800 IN NS ns1.smythies.com.
;; ADDITIONAL SECTION:
ns1.smythies.com. 604800 IN A 192.168.111.1
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 25 07:24:03 PDT 2018
;; MSG SIZE rcvd: 95
doug@DOUG-64:~$
Bookmarks