My issue is that ping and other applications (web browsers) by FQDN does NOT work, oddly enough pinging by single label hostnames with the correct search domain in /etc/resolv.conf DOES work. Also using dig or nslookup on the FQDN or single hostname also resolves. The lookup issues occur for every host in my environment, works by everything but FQDN.
Examples:
Code: Select all
ping ns01.wcbc.local
ping: ns01.wcbc.local: Name or service not known
#adding a period at the end of the FQDN
ping ns01.wcbc.local.
ping: ns01.wcbc.local.: Name or service not known
#single label name works
ping ns01
PING ns01.wcbc.local (10.22.2.10) 56(84) bytes of data.
64 bytes from ns01.wcbc.local (10.22.2.10): icmp_seq=1 ttl=62 time=1.04 ms
#dig FQDN
dig ns01.wcbc.local
; <<>> DiG 9.9.4-RedHat-9.9.4-50.el7_3.1 <<>> ns01.wcbc.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59202
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ns01.wcbc.local. IN A
;; ANSWER SECTION:
ns01.wcbc.local. 604800 IN A 10.22.2.10
;; AUTHORITY SECTION:
wcbc.local. 604800 IN NS ns01.wcbc.local.
;; Query time: 2 msec
;; SERVER: 10.22.2.10#53(10.22.2.10)
;; WHEN: Wed Aug 09 21:23:50 EDT 2017
;; MSG SIZE rcvd: 74
#nslookup on fqdn
nslookup ns01.wcbc.local
Server: 10.22.2.10
Address: 10.22.2.10#53
Name: ns01.wcbc.local
Address: 10.22.2.10
Code: Select all
# Generated by NetworkManager
search wcbc.local
nameserver 10.22.2.10