Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

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


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:
Apr  5 11:04:01 hobbes dhcpd: if IN A andreasg.mydomain.agl domain doesn't exist add 300 IN A andreasg.mydomain.agl add 300 IN TXT
andreasg.mydomain.agl "310859255775639c877bc3700d2ef9e63c": connection refused.
My named.conf

options {
        directory "/var/bind";

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

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

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

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

controls {
        inet 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 {
        keys { hobbes.mydomain.agl.;};

zone "." IN {
        type hint;
        file "";

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

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

zone "" IN {
        type master;
        file "pri/";
        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 "" IN {
        type master;
        file "master/192.168.0.rev";
        update-policy {
                grant hobbes.mydomain.agl. wildcard * PTR;
And finally my /etc/dhcp/dhcpd.conf
# DHCP Server configuration file for

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

# For dynamic dns updates
ddns-domainname "mydomain.agl";
ddns-rev-domainname "";
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 {
        key hobbes.mydomain.agl.;

zone {
        key hobbes.mydomain.agl.;
# This is the official DHCP Server for the local network

log-facility local7;

#The subnet declaration
subnet netmask {
        option routers hobbes.mydomain.agl;

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

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

Rep: Reputation: 66
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.

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 > Forums > Linux Forums > Linux - Networking

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

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