LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Closed Thread
 
Search this Thread
Old 04-05-2004, 04:18 AM   #1
aglock
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Question Dynamic DHCP/BIND9 connection refused problem


Hello!

I'm having trouble to set up my bind9 with dynamic updates from the dhcp server.

In /var/log/messages I got this when a client does a DHCP request:
Code:
Apr  5 11:04:01 hobbes dhcpd: if IN A andreasg.mydomain.agl domain doesn't exist add 300 IN A andreasg.mydomain.agl 192.168.0.99 add 300 IN TXT
andreasg.mydomain.agl "310859255775639c877bc3700d2ef9e63c": connection refused.
My named.conf

Code:
options {
        directory "/var/bind";

        // uncomment the following lines to turn on DNS forwarding,
        // and change the forwarding ip address(es) :
        forward first;
        forwarders {
                130.244.127.161;
                130.244.127.169;
        };

        listen-on-v6 { none; };
        listen-on { 127.0.0.1; };

        // to allow only specific hosts to use the DNS server:
        //allow-query {
        //      127.0.0.1;
        //};

        // if you have problems and are behind a firewall:
        //query-source address * port 53;
        pid-file "/var/run/named/named.pid";
};

controls {
        inet 127.0.0.1 allow { localhost; } keys {hobbes.mydomain.agl.;};
};

//DHCP Server Keyfile
//Note: The key MUST be enclosed by quotes
key hobbes.mydomain.agl.{
        algorithm hmac-md5;
        secret "YCI1LJEKuqFP7PxeXm9gRKnMHljxLQ==";
};

//This statement associates the key to a server.
server 127.0.0.1 {
        keys { hobbes.mydomain.agl.;};
};

zone "." IN {
        type hint;
        file "named.ca";
};

//zone "localhost" IN {
//      type master;
//      file "pri/localhost.zone";
//      allow-update { none; };
//      //notify no;
//};

//zone "0.0.127.in-addr.arpa" IN {
//      type master;
//      file "named.local"
//      allow-update { none; };
//};

zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
//      notify no;
};

//The forward zone I want to be able to update.
//This only allows A and TXT record updates.
zone "mydomain.agl" IN {
        type master;
        file "master/mydomain.agl";
        update-policy {
                grant hobbes.mydomain.agl. wildcard *.mydomain.agl. A TXT;
        };
};

//The reverse zone to be updated.
zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "master/192.168.0.rev";
        update-policy {
                grant hobbes.mydomain.agl. wildcard *.0.168.192.in-addr.arpa. PTR;
        };
};
And finally my /etc/dhcp/dhcpd.conf
Code:
# DHCP Server configuration file for mydomain.com

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option domain-name "mydomain.agl";

# For dynamic dns updates
ddns-domainname "mydomain.agl";
ddns-rev-domainname "id-addr.arpa";
ddns-update-style interim;
ignore client-updates;

#Key definition
key hobbes.mydomain.agl. {
        algorithm hmac-md5;
        secret YCI1LJEKuqFP7PxeXm9gRKnMHljxLQ==;
}

#Which zone do I nedd to update?
#Where is the primary DNS server?
#Which key should I use to authenticate the update?
zone mydomain.com. {
        primary 192.168.0.1;
        key hobbes.mydomain.agl.;
}

zone 0.0.168.192.in-addr.arpa. {
        primary 192.168.0.1;
        key hobbes.mydomain.agl.;
}
# This is the official DHCP Server for the local network
authoritative;

log-facility local7;

#The subnet declaration
subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.10 192.168.0.100;
        option routers hobbes.mydomain.agl;

#       host hobbes {
#               hardware ethernet 00:0C:6E:39:3C:D0;
#               fixed-address 192.168.0.1;
#       }
}
Does anyone have a clue about this?


regards
aglock
 
Old 04-05-2004, 12:16 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
Dynamic IP, Bind9, Subdomain Question skorpi0wn Linux - Networking 1 06-04-2009 01:22 PM
DHCP + DNS connection refused or timed out errors tnine9 Linux - Networking 1 08-08-2005 09:57 PM
Updating DHCP - dynamic inet connection won't update lrt2003 Slackware 2 05-26-2004 12:57 AM
Dynamic DHCP/BIND Connection refused problem aglock Linux - Networking 4 04-28-2004 07:43 AM


All times are GMT -5. The time now is 02:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration