3. Installing a DNS Server Using BIND

BIND can be configured graphically or via the command line:

3.1. Graphically

Within Gnome or KDE, do the following:

  • Install the bind package. Click Main Menu => System Settings => Add / Remove Applications. Select DNS Server. Also visit the Server Configuration Tools menu and select redhat-config-bind. When finished, hit Update.

  • Configure BIND. Click Main Menu => System Settings => Server Settings => DNS.

  • Add your custom HTML files into the the /var/www/html/ directory. Make sure file permissions allow read access from the other permission class.

  • Start the httpd service and set it to start by default. Main Menu => System Settings => Services, select the httpd service and slick Start to start the service (use Restart if it is already running).

  • Confirm your DNS server is working by using the host command.

3.2. On the command line

Open a terminal and do the following:

  • Install the bind package. At the prompt, then switch to the root user: su -l root

  • Install the package: rpm -Uvh /path/to/files/bind-*.rpm

  • Open /etc/named.conf in an editor (for example, nano: nano /etc/named.conf

  • Start the named service and set it to start by default by typing: chkconfig named on

  • Confirm your web server is working by visiting http://localhost in your web browser. You should see the Fedora Core test page.

If you have problems apachectl configtest