Why Am I able to ping by hostname despite removing "files" from "/etc/nsswitch.conf"

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

[email protected]:~$ 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
[email protected]:~$ cat /etc/resolv.conf
search caleston.ca
options ndots:0
[email protected]:~$
[email protected]:~$
[email protected]:~$ cat /etc/hosts       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters   devapp01-web   devapp01 caleston-lp10  caleston-lp10  caleston-lp10
[email protected]:~$
[email protected]:~$
[email protected]:~$
[email protected]:~$ ping devapp01-web
ping: unknown host
[email protected]:~$ ping devapp01
PING devapp01 ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.081 ms
64 bytes from icmp_seq=1 ttl=64 time=0.088 ms
64 bytes from icmp_seq=2 ttl=64 time=0.099 ms
64 bytes from icmp_seq=3 ttl=64 time=0.112 ms
64 bytes from 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
[email protected]:~$