Which file maps hostnames to IP addresses locally, before DNS is asked?
/etc/hosts/etc/hostname/etc/networks/etc/services
With the usual
Play Linux CLI ▸
/etc/nsswitch.conf order, entries in /etc/hosts are checked before querying DNS.