LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2007, 03:57 AM   #1
freakin'me
Member
 
Registered: Aug 2005
Distribution: Debian Sarge
Posts: 31

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

Last edited by freakin'me; 03-03-2007 at 04:14 AM.
 
Old 03-03-2007, 09:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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)
 
Old 03-03-2007, 10:28 AM   #3
freakin'me
Member
 
Registered: Aug 2005
Distribution: Debian Sarge
Posts: 31

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


Reply



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
BIND forward AD zones to DC psychobyte Linux - Networking 1 09-24-2006 11:46 AM
Tool to add domains/zones for bind? Moloko Linux - Networking 3 09-25-2005 09:11 AM
Bind 9 - trasfer zones - permission denied ddaas Linux - Security 1 02-01-2005 09:28 AM
trying to setup dns zones - bind 9.2.4 LKWPeter Linux - Networking 1 12-01-2004 03:05 PM
Tranferring Zones, Master to Slave, DNS - BIND newpylong Linux - Networking 0 09-02-2004 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:51 PM.

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