LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bind doesn't show it's zones? (https://www.linuxquestions.org/questions/linux-server-73/bind-doesnt-show-its-zones-534134/)

freakin'me 03-03-2007 03:57 AM

Bind doesn't show it's zones?
 
Hi,

I've installed bind on debian sarge, and added a few zones with the .lan tld. So far so good, however, when I do an nslookup,I get:
Quote:

multimedia:/etc/bind# nslookup dolf.lan
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find dolf.lan: SERVFAIL

multimedia:/etc/bind#
In /etc/bind/named.conf I added:
Code:

zone "dolf.lan" IN {
        type master;
        file "db.dolf.lan";
        allow-update { none; };
};

And it says in /etc/bind/db.dolf.lan:
Code:

$TTL    864
$ORIGIN dolf.lan.
@      IN      SOA    ns1.dolf.lan.  info.dolf.lan. (
                2007030201      ; serial
                3600            ; refresh
                3600            ; retry
                2419200        ; expiry
                604800 )        ; minimum
@      IN      NS      ns1.dolf.lan.
        IN      MX      10      mail.dolf.lan.
        IN      A      10.0.2.2
ns1    IN      A      10.0.0.3
mail    IN      A      10.0.0.3
www    IN      A      10.0.2.2

Perhaps someone sees what I am doing wrong here, I do not see it, but that may have to do with my lack of experience when it comes to BIND.

Regards,

Freakin'me

edit; correct several typos in db.dolf.lan, still not working...

bathory 03-03-2007 09:46 AM

Quote:

@ IN NS ns1.dolf.lan.
IN MX 10 mail.dolf.lan.
IN A 10.0.2.2
To resolve your zone change the above to:
Code:

        IN      NS      ns1.dolf.lan.
        IN      MX      10      mail.dolf.lan.
@      IN      A      10.0.2.2

Instead of the origin "@" you can use the whole zone name: dolf.lan. (mind the dot at the end)

freakin'me 03-03-2007 10:28 AM

Thanks for your reply.

A friend of me told me that I should take a look in syslog and deamon.log for Bind logs there by default, which I didn't know.

Once I opened syslog, it was all pretty clear, Bind couldn't find the zonefiles I added (unfortunately it didn't give any error/warning when I restarted it), after using absolute paths instead of relative ones, it all went smoothly...

Thanks for your help though,

Freakin'me


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