2.5.5. Edit Hosts Administrative Web Page

As well as caching DNS information from the Internet, the DNS proxy on IPCop allows you to manually enter hosts whose address you want to maintain locally. These could be addresses of local machines or machines on the Internet whose address you might want to override. Add a host

Add IP addresses and hostnames in the first section.

Figure 2.35. Add a host

Add a host section

Host IP Address.  Enter the IP address here.

Hostname.  Enter the host name here.

Domain name (optional).  If the host is in another domain then enter it here.

Enabled.  Check this box to enable the entry.

Add.  When you press the Add button the details are saved. Current hosts

This section shows the local DNS entries you have currently configured.

You can re-sort the display by clicking on any of the three underlined column headings. A further click will reverse the sort order.

Figure 2.36. List of current hosts

Current hosts section

To enable or disable an entry - click on the checkbox in the Action column for the particular host you want to enable or disable. The icon changes to an empty box when the entry is disabled. Click on the checkbox to enable it again.

To edit an entry click on its Yellow Pencil icon. The entry's data will be displayed in the form above. Make your changes and click the Update button on the form.

To delete an entry click on its Trash Can icon. Adding a list of hosts

Say you have a long list of hosts you'd like to add, such as a block list of ad servers' hostnames and addresses. Rather than type them in one by one, consider copying a file of names onto IPCop, and linking it to dnsmasq through the dnsmasq.local file.

Refer to the section on customizing dnsmasq.local for an example.