This file specifies how names are resolved. Linux uses a resolver library to obtain the IP address corresponding to a host name.
Following is a sample /etc/host.conf
file:
# Lookup names via DNS first then fall back to /etc/hosts. order bind,hosts# We have machines with multiple addresses. multi on
# Check for IP address spoofing. nospoof on
![]()
The order option indicates the order of services. The sample entry specifies that the resolver library should first consult the name server (DNS) to resolve a name and then check the | |
The multi option determines whether a host in the | |
The nospoof option indicates to take care of not permitting spoofing on this machine. IP-Spoofing is a security exploit that works by tricking computers in a trust relationship that you are someone that you really aren't. |