This is a plain vanilla fresh install of FreeBSD 13.1. The resolv.conf file is as follows and Unbound is not enabled.
DNS resolution on the local machine is ignoring
/etc/hosts. What is missing from the configuration?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Possibly your assumption that DNS includes entries from
All commands/tools designed to test DNS such as
host and such only query DNS servers and by default use the DNS server that is configured in
To test how the C library resolver works, and all programs that use the system resolver routines who do honour
/etc/nsswitch.conf precedence and which normally prefer the hosts file over DNS, requires testing with something like
getent hosts some.hostname.in.etc.hosts getent hosts IP.in.etc.hosts