LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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

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

Rep: Reputation: 0
Dynamic DHCP/BIND 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, 10:22 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
Doesn't look like a Linux - Security issue.

Thread moved to Linux - Networking
 
Old 04-05-2004, 10:27 AM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
Did you try temporarily shutting off your firewall to see if that is the source of the problem?
 
Old 04-27-2004, 03:46 PM   #4
ionreflex
LQ Newbie
 
Registered: Sep 2003
Location: 45.582628, -73.536342
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Exclamation

is it possible your "andreasl" machine is a windoz ?
 
Old 04-28-2004, 07:43 AM   #5
swathisat
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Unhappy DHCP Client Implementation

Hi everybody,

I am trying to write a C program which does the work of a DHCP client. For this I am going through /usr/src/linux"some version/net/ipv4/ipconfig.c.
This actually has implementation of DHCP Client functionality. But the problem is I am not able to extract those functionality because of dependencies of the other modules. Will some one help me in this regard

my mail ID is aravindku@hotmail.com


Help regarding this will be appreciated

Thanks & Best Regards
Aravind
 
  


Reply


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
Bind 9 rndc connection refused. 360 Linux - Networking 2 10-15-2010 02:47 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/BIND9 connection refused problem aglock Linux - Networking 1 04-05-2004 12:16 PM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM


All times are GMT -5. The time now is 07:01 PM.

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