LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-30-2003, 10:31 AM   #1
Init-0
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5

Rep: Reputation: 0
BIND DNS Problems with Zone file and Config


Ok im having some problems with my Internal DNS Server. Its BIND 9 running on Suse 8.2 and acts as a forwarder and an authorative server to my internal network.

The server works when i try to acess the extenal internet but every time i try to connect to an internal host i does not work. Ive searched around and tried to see what the problem is but i can seem to see what it is. Here is my config and my zone file. Any problems pointed out would be appreciated

Code:
options {

        directory "/var/lib/named";

        listen-on port 53 { 127.0.0.1; 192.168.0.2; };

        query-source address * port 53;
        transfer-source * port 53;
        notify-source * port 53;

        allow-query { 127.0.0.1; 192.168.0.0/24; };

        notify no;
};

zone "." in {
        type hint;
        file "rootservers.cache";
};

zone "localhost" in {
        type master;
        file "localhost.zone";
};

zone "harrinet.bogus" in {
        type master;
        file "harrinet.net";
        notify no;
        allow-transfer { none; };
        allow-query { 127.0.0.1;192.168.0.0/24; };
};
And here is my zone file

Code:
$TTL 604800
@       IN      SOA     ns.myharrinet.bogus. hostmaster.myharrinet.bogus. (
                        199802151       ; serial, todays date + todays
                        10800              ; refresh, seconds
                        1800              ; retry, seconds
                        1209600            ; expire, seconds
                        604800 )            ; minimum, seconds

                IN      NS     ns.myharrinet.bogus 

localhost       IN      A       127.0.0.1
harricomp1      IN      A       192.168.0.1
harricomp2      IN      A       192.168.0.2
harricomp3      IN      A       192.168.0.3
harricomp4      IN      A       192.168.0.4
harricomp5      IN      A       192.168.0.5
harricomp6      IN      A       192.168.0.6
harricomp7      IN      A       192.168.0.7
harricomp8      IN      A       192.168.0.8
Anyone help?
 
Old 07-30-2003, 10:47 AM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Try putting a . after your hostnames in your zone file, example:

harricomp1. IN A 192.168.0.1

You also probably want to setup reverse DNS to not break things, to map IP addresses to names.
 
Old 07-30-2003, 10:53 AM   #3
Init-0
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5

Original Poster
Rep: Reputation: 0
ok cheers ill give it a try
 
Old 07-30-2003, 11:04 AM   #4
jvds
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
Try dig @127.0.0.1 harricomp1.harrinet.bogus to see what that says

Rus
 
Old 07-30-2003, 12:09 PM   #5
Init-0
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5

Original Poster
Rep: Reputation: 0
; <<>> DiG 9.2.2 <<>> @127.0.0.1 harricomp1.myharrinet.bogus
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1588
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;harricomp1.myharrinet.bogus. IN A

;; AUTHORITY SECTION:
. 10774 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2003073000 1800 900 604800 86400

;; Query time: 13 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul 30 17:13:45 2003
;; MSG SIZE rcvd: 120

this is what i got
 
Old 07-30-2003, 02:51 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Which system is ns.myharrinet.bogus?
 
Old 07-30-2003, 04:58 PM   #7
Init-0
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5

Original Poster
Rep: Reputation: 0
harrinet2
 
  


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 DNS Slave zone macadam Linux - Networking 2 03-02-2005 06:49 AM
help please with bind zone file config smoalne Linux - Newbie 2 12-16-2004 10:56 PM
BIND Zone file problems Ryan0rZ Linux - Software 1 10-14-2004 01:24 PM
DNS Zone file config for mail server viniosity Linux - Software 4 09-16-2003 03:59 PM
Bind 9 problems loading zone file kayla Linux - Networking 3 04-26-2002 09:51 AM


All times are GMT -5. The time now is 03:21 PM.

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