...
No Format |
---|
order hosts,bind |
/etc/resolv.conf
The /etc/resolv.conf file configures the nameserver used to look up DNS data. A typical system contains a search line to specify the local domain. It also contains up to three nameserver lines to configure nameservers. Because we are setting up a local caching nameserver only one entry is needed. The 0.0.0.0
entry specifies that the nameserver on the local host will be contacted for DNS lookups.
No Format |
---|
search example.com
nameserver 0.0.0.0
|
Note that if your host uses a client configuration with DHCP to configure networking that this file may be overwritten by the DHCP client on the local host every time the network is enabled. See your DHCP documentation for more information.
/etc/hosts
The /etc/hosts file is the original location for DNS data. However it is not used generally for DNS lookups on modern systems. It is impossible to keep the entire Internet database there. But it is still used for a small amount of local system data.
...