FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-09-2008, 09:09 AM
"Jesus arteche"
 
Default Dhcp and dns update

hey,

I have a dhcp server and a bind9 installed in my server...both works perfectly...but now i want teh dhcp server update the bind... i think my conf its right but it doesnt work...my conf files

dhcp.conf


# Dispositivos moviles
subnet 192.168.x.0 netmask 255.255.255.0 {
******** ##DE MOMENTO NO ACEPTA NINGUN CLIENTE DE FUERA, HASTA QUE CONFIGURE EL$
******* deny unknown-clients;

******* range 192.168.x.145 192.168.x.159;
******* }
##PC's de xxxxxx
group{
******* server-identifier xxxxx-server;
******* option domain-name "xxxxx.es";
******* option routers 192.168.x.250;

******* option domain-name-servers 192.168.x.249 , 192.168.x.246;
******* option ntp-servers xxxxx-server;
******* next-server 192.168.x.249;
******* filename "pxelinux.0";
******* default-lease-time 8640000;

******* ddns-update-style interim;
******* ddns-domainname "xxxxx.es";
******* use-host-decl-names on;
******* ddns-updates on;
******* #Cano
******* host PCxxxxx1 {

*************** hardware ethernet 00:13:8F:x:x:x;
*************** fixed-address 192.168.x.65;
*************** option host-name "PCxxxxxx1";
*************** update-static-leases on;
*************** }

....
}

named.conf

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
******* type hint;
******* file "/etc/bind/db.root";

};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
******* type master;
******* file "/etc/bind/db.local";

};

zone "127.in-addr.arpa" {
******* type master;
******* file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
include "/etc/bind/named.conf.options";


// prime the server with knowledge of the root servers
zone "." {
******* type hint;
******* file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for

// broadcast zones as per RFC 1912

zone "localhost" {
******* type master;
******* file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
******* type master;
******* file "/etc/bind/db.127";

};

zone "0.in-addr.arpa" {
type master;
******* file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
******* type master;
******* file "/etc/bind/db.255";

};
include "/etc/bind/named.conf.local";



include "/etc/bind/rndc.key";

key "TRANSFER" {
algorithm hmac-md5;
******* secret "FCi9fs/xGz/61FX3GTX8fw==";

};

server 192.168.x.246 {
******* };


# Configure the logging options
logging {



*** channel default {
******* # Send logs to the syslog 'local0' facility
******* syslog********* local0;

******* # Log messages of severity 'info' or higher
******* severity******* debug;
******* print-category* yes;
******* print-severity* yes;
*** };



*** # Ignore logs about misconfigured remote servers

*** category lame-servers { null; };

*** # Default logging options
*** *** category default { default; };
};

server 192.168.x.233 {
******* };


There are two secondary dns servers x.233 y x.246



named.conf.local

zone "xxxx.es" {
******* type master;
******* file "/etc/bind/zones/master_xxxxx.es";
******* allow-update { key "rndc-key"; };

******* notify yes;
};
zone "." IN{
****** type slave;
****** file "/etc/bind/db.root";

masters {* 58.6.115.46; 216.87.84.214;62.42.230.24; 62.42.63.52;87.216.1.65;};


****** allow-transfer { any; };
****** notify no;
};



named.conf.options

options {
******* directory "/var/cache/bind";

******** forward first;
******** forwarders {

*************** 62.42.230.24;
*************** 62.42.63.52;
*************** 87.216.1.65;
*************** 87.216.1.66;

*************** 62.14.63.145;
*************** 62.14.2.1;
*************** 80.58.61.254;
*************** 80.58.61.250;

*************** 195.5.64.2;
*************** 217.76.128.4;
*************** 217.76.129.4;
******** };

******* auth-nxdomain no;*** # conform to RFC1035

******* dnssec-enable yes;
******* listen-on port 53 { 192.168.23.249; };
******* listen-on-v6 port 53 { 192.168.23.249; };
****** dump-file****** "/var/cache/bind/cache_dump.db";

******* statistics-file "/var/cache/bind/named_stats.txt";
******* memstatistics-file "/var/cache/bind/named_mem_stats.txt";
****** allow-query**** { any; };
******* stacksize 1100M;
******* datasize 1000M;



};

In the file dhcpd.leases not appear any leases.
someone knows what is wrong?

thanks
 
Old 12-09-2008, 08:04 PM
Alex Samad
 
Default Dhcp and dns update

On Tue, Dec 09, 2008 at 11:09:51AM +0100, Jesus arteche wrote:
> hey,
>
> I have a dhcp server and a bind9 installed in my server...both works
> perfectly...but now i want teh dhcp server update the bind... i think my
> conf its right but it doesnt work...my conf files

You need to tell dhcpd which key to use to update bind. Notice you have
defined a key to allow for updates in the allow update statement, you
also have a key called TRANSFER, you need to tell dhcpd about the update
key.


you can use nsupdate to test

a

>
> dhcp.conf

[snip]

>
>
> include "/etc/bind/rndc.key";
>
> key "TRANSFER" {
> algorithm hmac-md5;
> secret "FCi9fs/xGz/61FX3GTX8fw==";
> };
>

[snip]

> zone "xxxx.es" {
> type master;
> file "/etc/bind/zones/master_xxxxx.es";
> allow-update { key "rndc-key"; };
> notify yes;
> };
> zone "." IN{
> type slave;
> file "/etc/bind/db.root";

[snip]

>
> In the file dhcpd.leases not appear any leases.
> someone knows what is wrong?
>
> thanks

--
"You f--cking son of a bitch. I saw what you wrote. We're not going to forget this."

- George W. Bush
06/20/2005
To writer Al Hunt
 

Thread Tools




All times are GMT. The time now is 02:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org