|
|
|
|
How to edit a hosts file - LINUX |
|
|
How to edit a hosts file - LINUX
Edit the hosts file on your system. The hosts file is usually found in /etc/hosts
71.155.186.91 directory.thepalace.com
Now make sure this file is used for host name lookups. This is done in two files. First is:
/etc/host.conf
This file should have at least the line shown below:
order hosts,bind
That has host lookups use the hosts file before doing a DNS query with bind.
The next file is:
/etc/nsswitch.conf
Recent tests indicate that this file is required in order for the pserver to use the entry in /etc/hosts. The nsswitch.conf file should have this line for the hosts configuration:
hosts: files nisplus nis dns
There will probably already be a similar line in your version of this file. Just make sure "files" comes before whatever other methods are listed.
|
|