If DNS does not work or you get the messages
resolv+: "bind" is an invalid keyword
resolv+: "hosts" is an invalid keyword
then you need to configure a /compat/linux/etc/host.conf file containing:
order hosts, bind
multi on
where the order here specifies that /etc/hosts is searched first and DNS is searched second. When /compat/linux/etc/host.conf is not installed linux applications find FreeBSD's /etc/host.conf and complain about the incompatible FreeBSD syntax. You should remove `bind,' if you have not configured a name-server using the /etc/resolv.conf file.
Lastly, those who run 2.1-STABLE need to set an the RESOLV_HOST_CONF environment variable so that applications will know how to search the host tables. If you run FreeBSD 2.2-RELEASE or later, you can skip this. For the /bin/csh shell use:
setenv RESOLV_HOST_CONF /compat/linux/etc/host.conf
For /bin/sh use:
RESOLV_HOST_CONF=/compat/linux/etc/host.conf; export RESOLV_HOST_CONF