Quote:
Originally Posted by bathory
Let's start from the beginning.
Remove IN from your /etc/named.conf. I suggest you to use vi to make the changes because the fact that it's not loading your zone could due to control characters
Code:
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
// Uncommenting this might help if you have to go through a
// firewall and things are not working out. But you probably
// need to talk to your firewall admin.
// query-source port 53;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
key "rndc_key" {
algorithm hmac-md5;
secret "KJLZX+44uYN7dTz5QuyKQw==";
};
zone "." {
type hint;
file "root.hints";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
};
zone "maes.local" {
type master;
notify no;
file "pz/maes.local";
};
In your zone file there is no difference if you use IN or not. BUT since you add the record for the host ns you MUST increase the serial, for the changes to take effect. Make it something like:
Code:
199802152 ; serial, todays date + todays serial
Stop and start named to see if it works.
|
Actually, the "IN" wasn't there in my previous named.conf. I noticed those in an example on the internet (during my searches) and added them - ofcourse without result.
Following your advice, I removed them again. Sidenote: I always use vi.
This is the complete named.conf:
Code:
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
// Uncommenting this might help if you have to go through a
// firewall and things are not working out. But you probably
// need to talk to your firewall admin.
// query-source port 53;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
key "rndc_key" {
algorithm hmac-md5;
secret "KJLZX+44uYN7dTz5QuyKQw==";
};
zone "." {
type hint;
file "root.hints";
};
zone "maes.local" {
type master;
notify no;
file "pz/maes.local";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
};
zone "actua-forums.be" {
type master;
file "pz/actua-forums.be";
notify no;
};
zone "actualan.be" {
type master;
notify no;
file "pz/actualan.be";
};
zone "datanuke.be" {
type master;
notify no;
file "pz/datanuke.be";
};
zone "ronkel.net" {
type master;
notify no;
file "pz/ronkel.net";
};
zone "websearch.local" {
type master;
notify no;
file "pz/websearch.local";
};
(I had removed some zones to reduce complexity, but I guess we arrived at a stage we can use all info we can get
)
All zonefiles were checked with named-checkzone:
named-checkzone -t /var/named/pz/ ronkel.net ronkel.net (etc).
All OK.