LinuxQuestions.org
Help answer threads with 0 replies.
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 08-09-2006, 05:38 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021

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.
 
Old 08-09-2006, 05:43 AM   #17
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by prozac
in my understanding, bind should look for maes.local and try to load it (even if it has errors), but since it isn't even trying, i feel it is not using the named.conf you have configured.
Code:
Aug  9 12:23:48 SUN named[1448]: loading configuration from '/etc/named.conf'
This really is the one

Code:
find / -name "named.conf"
/etc/named.conf
/data/backup/named.conf
 
Old 08-09-2006, 05:50 AM   #18
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
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.

Last edited by BlackRabbit; 08-09-2006 at 05:51 AM.
 
Old 08-09-2006, 06:51 AM   #19
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
Also, maybe this can come in handy:
Code:
named -v
BIND 9.3.0
Progression:
Code:
root@SUN:/var/named/pz# named -g
09-Aug-2006 13:51:42.792 starting BIND 9.3.0 -g
09-Aug-2006 13:51:42.805 loading configuration from '/etc/named.conf'
09-Aug-2006 13:51:42.862 no IPv6 interfaces found
09-Aug-2006 13:51:42.862 listening on IPv4 interface lo, 127.0.0.1#53
09-Aug-2006 13:51:42.864 listening on IPv4 interface eth0, 192.168.0.2#53
09-Aug-2006 13:51:42.876 command channel listening on 127.0.0.1#953
09-Aug-2006 13:51:42.877 ignoring config file logging statement due to -g option
09-Aug-2006 13:51:42.885 zone 0.0.127.in-addr.arpa/IN: loaded serial 1
09-Aug-2006 13:51:42.887 pz/actua-forums.be:15: //.actua-forums.be: bad owner name (check-names)
09-Aug-2006 13:51:42.888 zone actua-forums.be/IN: loading master file pz/actua-forums.be: bad owner name (check-names)
09-Aug-2006 13:51:42.890 pz/actualan.be:15: //.actualan.be: bad owner name (check-names)
09-Aug-2006 13:51:42.891 zone actualan.be/IN: loading master file pz/actualan.be: bad owner name (check-names)
09-Aug-2006 13:51:42.892 pz/datanuke.be:15: //.datanuke.be: bad owner name (check-names)
09-Aug-2006 13:51:42.893 zone datanuke.be/IN: loading master file pz/datanuke.be: bad owner name (check-names)
09-Aug-2006 13:51:42.895 pz/maes.local:16: //.maes.local: bad owner name (check-names)
09-Aug-2006 13:51:42.896 zone maes.local/IN: loading master file pz/maes.local: bad owner name (check-names)
09-Aug-2006 13:51:42.898 pz/websearch.local:14: //.websearch.local: bad owner name (check-names)
09-Aug-2006 13:51:42.898 zone websearch.local/IN: loading master file pz/websearch.local: bad owner name (check-names)
09-Aug-2006 13:51:42.900 pz/ronkel.net:15: //.ronkel.net: bad owner name (check-names)
09-Aug-2006 13:51:42.901 zone ronkel.net/IN: loading master file pz/ronkel.net: bad owner name (check-names)
09-Aug-2006 13:51:42.903 running
09-Aug-2006 13:51:42.903 zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 1)
What owner is it talking about?


Found the problem: seems "//" is no longer allowed as comment-thingie...



Thanks for the help guys!

Last edited by BlackRabbit; 08-09-2006 at 07:04 AM.
 
  


Reply

Tags
named, slackware


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
'named' problems on boot and shutdown ayn Linux - Networking 1 06-20-2004 09:12 AM
Named on Fedora problems johnrat Linux - Networking 3 05-14-2004 08:09 AM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM
named - dns - problems blaci Linux - General 2 07-22-2003 01:32 AM
named problems 9nine9 Linux - Networking 4 01-25-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration