LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-02-2005, 06:38 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
BIND setup problem


I been trying to setup BIND but nslookup is giving me a SERVFAIL error.

the borland.com file in /var/named/borland.com:

$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA elite.borland.com. root.borland.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS elite.borland.com.
1D IN A 192.168.1.1
elite IN A 192.168.1.1
www IN CNAME elite

the borland.rev file in /var/named/borland.rev:

$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA elite.borland.com. root.borland.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS elite.borland.com.
1D IN A 192.168.1.1
7.1 IN PTR elite.borland.com.
8.1 IN PTR elite.borland.com.

elite is the hostname of the machine.

named.conf:

zone "borland.com" IN {
type master;
file "borland.com";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "borland.rev";
};

resolv.conf:

domain borland.com
nameserver 192.168.1.1

Can anyone tell me what am I doing wrong?

TIA.
 
Old 06-02-2005, 07:04 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,925

Rep: Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327Reputation: 1327
1. Take a look at /etc/resolv.conf to see if your nameserver is listed.
2. Make sure it's running
3. If you're trying to resolve an external domain and it fails make sure you put a forwarders keyword in named.conf pointing to your isp nameserver.
Hope that helps.
 
Old 06-02-2005, 07:14 AM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,578

Rep: Reputation: 127Reputation: 127
I use slightly different syntax, but I suggest :

/var/named/borland.com:
Code:
$TTL 86400
@        IN SOA elite.borland.com. root.borland.com. (
                                                        2004081078 ;   Serial
                                                        10800   ;   Refresh after 3 hours
                                                        3600    ;   Retry after 1 hour
                                                        604800  ;   Expire after 1 week
                                                        86400    ) ;   Minimum TTL of 1 day

@                   IN NS elite.borland.com.
elite.borland.com.  IN A 192.168.1.1
www.borland.com.    IN CNAME elite.borland.com.
/var/named/borland.rev:
Code:
$TTL 86400
@        IN SOA elite.borland.com. root.borland.com. (
                                                        2004081078 ;   Serial
                                                        10800   ;   Refresh after 3 hours
                                                        3600    ;   Retry after 1 hour
                                                        604800  ;   Expire after 1 week
                                                        86400    ) ;   Minimum TTL of 1 day

@                         IN NS  elite.borland.com.
1.1.168.192.in-addr.arpa. IN PTR elite.borland.com.

Last edited by keefaz; 06-02-2005 at 07:17 AM.
 
Old 06-02-2005, 02:55 PM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
You also need to check your named.conf file to make sure that the zone file is listed.

Here's the tail end of my named.conf file as an example:

Code:
zone "zeads.com" { type master; notify no; file "null.zone.file"; };
zone "zedo.com" { type master; notify no; file "null.zone.file"; };
zone "zencudo.co.uk" { type master; notify no; file "null.zone.file"; };
zone "zi.r.tv.com" { type master; notify no; file "null.zone.file"; };
zone "zmedia.com" { type master; notify no; file "null.zone.file"; };
(and thanks for reminding me.... I need to go to http://pgl.yoyo.org/adservers and update my blacklist. )
 
  


Reply


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
BIND setup problem noir911 Debian 1 06-06-2005 01:24 AM
Setup BIND dawizman Linux - Software 4 05-28-2004 12:23 AM
DNS-BIND setup nueunix Linux - Networking 1 05-12-2004 05:27 PM
bind setup steps techhost Linux - Newbie 1 04-05-2004 06:05 AM
setup bind 9.1.0 joseph Linux - General 0 08-14-2003 01:07 AM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration