LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Fedora Core 4 DHCPD and BIND, cannot get Dynamic DNS to work (https://www.linuxquestions.org/questions/linux-networking-3/fedora-core-4-dhcpd-and-bind-cannot-get-dynamic-dns-to-work-419073/)

trainpic 02-24-2006 07:59 AM

Fedora Core 4 DHCPD and BIND, cannot get Dynamic DNS to work
 
I'm using fedora core 4 and the BIND nameserver, with dhcpd. This network has no connection to the internet, so the server is master for the root zone. The DNS server works perfectly with the A and PTR records that I have manually entered. The problem is that I cannot get DHCPD to update DNS. I use a 128bit HMAC-MD5 secret key, and set the DHCP server to update the "amsden.com." zone and the "0.168.192.in-addr.arpa." zone. I configured a range of ip adresses, and three fixed addresses for "elap","gamepc", and "ps2" I ran ethereal capturing on both eth0 and lo, and had client "elap" obtain an IP address. I then ran host to find "elap.amsden.com." and received "NXDOMAIN". Ethereal captured no packets from the dhcp to the DNS. I am therefore assuming that DHCP is not properly configured to update DNS. What exactly do I need to do to make it do this?

trainpic 02-25-2006 11:31 AM

Ok. here are my config files. Maybe I need to post these to get replies.
dhcpd.conf:
Code:

server-name "server";
ddns-updates on;
ddns-update-style interim;
ddns-domainname "amsden.com.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;



subnet 192.168.0.0 netmask 255.255.255.0 {

include "/var/named/chroot/etc/rndc.key";

zone amsden.com. {
        primary 127.0.0.1;
        key rndckey;
}

zone 0.168.192.in-addr.arpa. {
        primary 127.0.0.1;
        key rndckey;
}

        option        subnet-mask                255.255.255.0;
        option        time-offset                -18000;
        option        domain-name                "amsden.com.";
        option        domain-name-servers        192.168.0.1;
        option        netbios-name-servers        192.168.0.1;
        option        ntp-servers                192.168.0.1;
        option        netbios-name-servers        192.168.0.1;
        option        netbios-node-type        2;

        range        192.168.0.50                192.168.0.240;
        default-lease-time                21600;
        max-lease-time                        43200;

        host elap {
                hardware ethernet        00:08:02:2C:55:D7;
                fixed-address                192.168.0.11;
        }

        host ps2 {
                hardware ethernet        00:00:39:0B:0E:B1;
                fixed-address                192.168.0.30;
        }

        host ps2_2 {
                hardware ethernet        00:13:15:AA:E0:A3;
                fixed-address                192.168.0.31;
        }

        host gamepc {
                hardware ethernet        00:04:76:B7:02:D0;
                fixed-address                192.168.0.20;
        }
}

named.conf
Code:

options {
        directory "/var/named";
        allow-query { any; };
        recursion no;
};

#include "/etc/rndc.key";

controls {
        inet 192.168.0.0        allow { any; } keys { rndckey; };
        inet 127.0.0.0                allow { any; } keys { rndckey; };
};

zone "." {
        type master;
        file "root.zone";
};

zone "com." {
        type master;
        file "com.zone";
};

zone "amsden.com." {
        type master;
        file "amsden.com.zone";
        allow-update { key "rndckey"; };
};

zone "in-addr.arpa." {
        type master;
        file "in-addr.arpa.zone";
};

zone "0.0.127.in-addr.arpa." {
        type master;
        file "0.0.127.in-addr.arpa.zone";
};

zone "0.168.192.in-addr.arpa." {
        type master;
        file "0.168.192.in-addr.arpa.zone";
        allow-update { key "rndckey"; };
};

zone "localdomain." {
        type master;
        file "localdomain.zone";
};

Note that there are hard-to-see scrollbars on the code boxes that are needed to see the whole thing.

trainpic 02-25-2006 04:27 PM

Anyone? Anywhere? Anything???


All times are GMT -5. The time now is 05:31 AM.