Hello @vijin.palazhi
I have been trying to play around with the /etc/nsswitch.conf file. I have removed the “files” from this file but still able to ping devapp01 but not devapp01-web
Trying to understand if there is any other configuration from where devapp01 is fetching. I see the DNS server mentioned in /resolve.conf is 127.0.0.11
bob@caleston-lp10:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat systemd
group: compat systemd
shadow: compat
gshadow: files
hosts: dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
bob@caleston-lp10:~$ cat /etc/resolv.conf
search caleston.ca
nameserver 127.0.0.11
options ndots:0
bob@caleston-lp10:~$
bob@caleston-lp10:~$
bob@caleston-lp10:~$ cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.238.10 devapp01-web
172.16.239.10 devapp01
172.16.238.187 caleston-lp10
172.16.238.187 caleston-lp10
172.16.239.187 caleston-lp10
bob@caleston-lp10:~$
bob@caleston-lp10:~$
bob@caleston-lp10:~$
bob@caleston-lp10:~$ ping devapp01-web
ping: unknown host
bob@caleston-lp10:~$ ping devapp01
PING devapp01 (172.16.238.10): 56 data bytes
64 bytes from 172.16.238.10: icmp_seq=0 ttl=64 time=0.081 ms
64 bytes from 172.16.238.10: icmp_seq=1 ttl=64 time=0.088 ms
64 bytes from 172.16.238.10: icmp_seq=2 ttl=64 time=0.099 ms
64 bytes from 172.16.238.10: icmp_seq=3 ttl=64 time=0.112 ms
64 bytes from 172.16.238.10: icmp_seq=4 ttl=64 time=0.130 ms
^C--- devapp01 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.081/0.102/0.130/0.000 ms
bob@caleston-lp10:~$