This configuration has been tested with bind-9.3.4-10.P1.el5.

You need to modify the following configuration files on dulak-server:

  • /var/named/chroot/etc/named.conf. Download named.conf and:

    cp named.conf /var/named/chroot/etc/
    chown root.named /var/named/chroot/etc/named.conf
    chmod g=r /var/named/chroot/etc/named.conf
    ln -s /var/named/chroot/etc/named.conf /etc/named.conf
  • /var/named/chroot/var/named/dulak-cluster.fysik.dtu.dk Zone File. Download dulak-cluster.fysik.dtu.dk and:

    cp dulak-cluster.fysik.dtu.dk /var/named/chroot/var/named/
    chown root.named /var/named/chroot/var/named/dulak-cluster.fysik.dtu.dk
    chmod g=r /var/named/chroot/var/named/dulak-cluster.fysik.dtu.dk
  • /var/named/chroot/var/named/0.3.10.in-addr.arpa Reverse Name Resolution Zone File. Download 0.3.10.in-addr.arpa and:

    cp 0.3.10.in-addr.arpa /var/named/chroot/var/named/
    chown root.named /var/named/chroot/var/named/0.3.10.in-addr.arpa
    chmod g=r /var/named/chroot/var/named/0.3.10.in-addr.arpa

You need to modify the following configuration files on both dulak-server and "Golden Client":

  • /etc/hosts:

    127.0.0.1       localhost.localdomain   localhost
  • /etc/resolv.conf:

    search dulak-cluster.fysik.dtu.dk
    nameserver 10.3.0.2

    Very important! On dulak-server to get internet access you must add at least one more "nameserver" line with the IP address of your DNS name server specified!

  • /etc/dhclient-exit-hooks (as dhcpclient overwrites /etc/resolv.conf, see http://www.perturb.org/display/entry/777/):

    echo "search dulak-cluster.fysik.dtu.dk" > /etc/resolv.conf
    echo "nameserver 10.3.0.2" >> /etc/resolv.conf

    Very important! On dulak-server to get internet access you must add at least one more "nameserver" line with the IP address of your DNS name server specified!

You need to start the DNS service:

service named restart

Go to installing and configuring systemimager.

Troubleshooting

  • if you get in /var/log/messages on dulak-server:

    # Oct  6 12:54:44 dulak-server setroubleshoot:      SELinux is preventing /usr/sbin/named (named_t) "getattr" access to /dev/random (tmpfs_t).      For complete SELinux messages. run sealert -l 7e5720c7-667d-4671-b9ae-1059dc9a75f7

    Do:

    restorecon -v /var/named/chroot/dev/random
    service named restart

Niflheim: Building_a_Cluster_-_Tutorial/configuring_DNS (last edited 2010-10-20 09:15:26 by localhost)