The Hosts tab allows you to add, edit, or remove hosts from the /etc/hosts file. This file contains IP addresses and their corresponding hostnames.
When your system tries to resolve a hostname to an IP address or determine the hostname for an IP address, it refers to the /etc/hosts file before using the name servers (if you are using the default Red Hat Linux configuration). If the IP address is listed in the /etc/hosts/etc/hosts file.
To add an entry to the /etc/hosts file, go to the
Hosts tab, click the New
button on the toolbar, provide the requested information, and click
OK. Select File =>
Save or press
![]() | Warning |
|---|---|
Do not remove the localhost |
![]() | Tip |
|---|---|
To change lookup order, edit the /etc/host.conf file. The line order hosts, bind specifies that the /etc/hosts takes precedence over the name servers. Changing the line to order bind, hosts in the /etc/hosts file. |
| Главная |