bathory,
Thanks for the help!
I'm sorry about the delay on giving the feedback.
I would like to show you my confs and zone files. It is working beautifully.
You can change the domain name or IP range, and adapt it to your needs.
(It is in portuguese. "rede.interna" stands for "internal.network").
dhcpd.conf
Code:
ddns-update-style interim;
include "/etc/bind/rndc.key";
option domain-name "rede.interna";
option domain-name-servers 192.168.2.1, 200.175.5.139, 200.175.89.139, 8.8.8.8, 8.8.4.4;
option routers 192.168.2.1;
option broadcast-address 192.168.2.255;
option netbios-name-servers 192.168.2.1;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
subnet 192.168.2.0 netmask 255.255.2.0 {
range 192.168.2.10 192.168.2.20;
next-server 192.168.2.1;
}
zone rede.interna. {
primary 192.168.2.1;
key "rndc-key";
}
zone 2.168.192.in-addr.arpa. {
primary 192.168.2.1;
key "rndc-key";
}
named.conf
Code:
I didn't change this file.
Just take a look to verify if the "includes" are not commented.
named.conf.local
Code:
# Opções (Options)
include "/etc/bind/rndc.key";
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; }
keys { "rndc-key"; };
};
#----------------------------------------
#
# Zona local: rede.interna
#
zone "rede.interna" {
type master;
file "db.rede.interna";
notify no;
allow-update { key "rndc-key"; };
};
zone "2.168.192.in-addr.arpa" {
type master;
file "db.rev.rede.interna";
notify no;
allow-update { key "rndc-key"; };
};
#----------------------------------------
named.conf.options
Code:
options {
directory "/var/cache/bind";
version "REFUSED";
forwarders {
192.168.2.1;
200.175.5.139;
8.8.8.8;
200.175.89.139;
8.8.4.4;
};
auth-nxdomain no; # conform to RFC1035
listen-on { 192.168.2.1; };
# listen-on-v6 { any; };
};
db.rede.interna
Code:
$ORIGIN .
$TTL 86400
rede.interna IN SOA dns.rede.interna. admin.rede.interna. (
201009201
28800
7200
2419200
86400
)
NS dns.rede.interna.
A 192.168.2.1
$ORIGIN rede.interna.
server A 192.168.2.1
dns A 192.168.2.1
www A 192.168.2.1
wireless A 192.168.2.2
* wireless is my wireless router's fixed IP address.
db.rev.rede.interna
Code:
$ORIGIN .
$TTL 86400
2.168.192.in-addr.arpa IN SOA rede.interna. admin.rede.interna. (
201009201
28800
7200
2419200
86400
)
NS dns.rede.interna.
$ORIGIN 2.168.192.in-addr.arpa.
1 IN PTR server.rede.interna.
2 IN PTR wireless.rede.interna.
If you are reading this and want any help on how to do it step by step, I can help.
I would like to thank you all!