Hi, I'm having problems to configure the dynamic DNS on my server. I`m using freebsd FreeBSD 8.2, BIND and isc-dhcp41-server.
The configuration files are:
DNS configuration:
/var/named/etc/namedb
/var/named/etc/namedb/master
DHCP configuration:
Problem: named is not configuring the DNS entries received from the dhcp. Named is not able to create the .jnl files and it is not able to map the hostnames.
I tried to solve this issue changing the files permissions and the file owner without success.
I hope that you can help me.
Thanks in advance.
The configuration files are:
DNS configuration:
/var/named/etc/namedb
Code:
dhcp1# ls -la
drwxr-xr-x 6 root wheel 512 Jan 23 19:49 .
drwxr-xr-x 3 root wheel 512 Jan 23 19:49 ..
drwxr-xr-x 2 bind wheel 512 Feb 16 2011 dynamic
drwxr-xr-x 2 root wheel 512 Jan 23 19:47 master
-rw-r--r-- 1 root wheel 814 Jan 23 19:50 named.conf
-rw-r--r-- 1 root wheel 13982 Feb 16 2011 named.conf_samples
-rw-r--r-- 1 root wheel 3085 Feb 16 2011 named.root
-rw------- 1 bind wheel 97 Jan 23 19:49 rndc.key
drwxr-xr-x 2 bind wheel 512 Feb 16 2011 slave
drwxr-xr-x 2 bind wheel 512 Feb 16 2011 working
vi /var/named/etc/namedb/named.conf
Code:
zone "test.com.ar" {
type master;
allow-update {any;};
also-notify {192.1.10.2;};
ixfr-from-differences yes;
allow-transfer {192.1.10.2;};
file "/etc/namedb/master/test.db";
};
Code:
dhcp1# ls -la
drwxr-xr-x 2 root wheel 512 Jan 23 19:47 .
drwxr-xr-x 6 root wheel 512 Jan 23 19:49 ..
-rwxrwxrwx 1 root wheel 1832 Jan 23 19:46 test.db
-rwxrwxrwx 1 root wheel 243 Feb 16 2011 empty.db
-rwxrwxrwx 1 root wheel 265 Feb 16 2011 localhost-forward.db
-rwxrwxrwx 1 root wheel 333 Feb 16 2011 localhost-reverse.db
vi /var/named/etc/namedb/master/test.db
Code:
$TTL 3600 ; 1 hour default TTL
test.com.ar. IN SOA dns1.test.com.ar. root.localhost. (
2006051503 ; Serial
200 ; Refresh
200 ; Retry
604800 ; Expire
300 ; Negative Response TTL
)
NS dns1.test.com.ar.
A 200.49.210.5
; Machine Names
test1 A 10.0.0.5
test2 A 10.0.0.6
test3 A 10.0.0.7
DHCP configuration:
Code:
dhcp1# cd /usr/local/etc/
dhcp1# ls -la
drwxr-xr-x 6 root wheel 512 Jan 23 19:40 .
drwxr-xr-x 13 root wheel 512 Jan 23 16:19 ..
drwxr-xr-x 2 root wheel 512 Jan 23 16:19 devd
-rw-r--r-- 1 root wheel 506 Jan 23 19:40 dhcpd.conf
drwxr-xr-x 2 root wheel 512 Jan 23 16:19 man.d
drwxr-xr-x 2 root wheel 512 Jan 23 16:19 pam.d
drwxr-xr-x 2 root wheel 512 Jan 23 19:31 rc.d
vi dhcpd.conf
Code:
ddns-domainname "dialdata.com.ar.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
allow client-updates;
option domain-name "dialdata.com.ar";
option domain-name-servers 192.1.10.1, 192.1.10.2;
authoritative;
log-facility local7;
subnet 192.1.0.0 netmask 255.255.0.0 {
range 192.1.50.2 192.1.50.40;
option routers 192.1.1.1;
default-lease-time 600;
max-lease-time 7200;
zone dialdata.com.ar. {
primary 127.0.0.1;
}
zone 50.1.192.in-addr.arpa. {
primary 127.0.0.1;
}
}
Code:
dhcp1# vi /var/log/messages
Jan 25 13:16:28 dhcp1 named[579]: /etc/namedb/master/test.db.jnl: create: permission denied
Jan 25 13:16:28 dhcp1 dhcpd: Unable to add forward map from ubuntu.test.com.ar. to 192.1.50.4: timed out
Jan 25 13:16:29 dhcp1 named[579]: /etc/namedb/master/test.db.jnl: create: permission denied
Jan 25 13:16:29 dhcp1 dhcpd: Unable to add forward map from ubuntu.test.com.ar. to 192.1.50.3: timed out
I hope that you can help me.
Thanks in advance.