LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-20-2005, 08:52 AM   #1
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Angry DNS Agony!


I've tried many times over to configure a DNS server. This doesn't seem to be working out well. I always get this error.

Code:
 [root@mun-175-25 ~]# service named start
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone example.com/IN: loading master file db.example.com: file not found
_default/example.com/IN: file not found
                                                           [FAILED]
I'm doing this straight out of a book so we have "example.com"

The "db.example.com" exists in the /var/named directory but it cannot be found. This is the configuration:

Code:
[root@mun-175-25 ~]# vi /var/named/db.example.com
$TTL    86400
@       IN      SOA     example.com.
hostmaster.example.com. (
                                2005072001      ;       Serial
                                28800           ;       Refresh
                                14400           ;       Retry
                                3600000         ;       Expire
                                86499   )       ;       minimum
; Name Servers
        IN      NS      ns1.example.com.
        IN      NS
;ns2.secondaryDNSserver.com.

; Mail server for domain

; Public servers

ftp     IN      A       192.168.0.1

;EOF
I don't know where I've gone wrong here but this is driving me crazy! Help Me Please!!!
 
Old 07-20-2005, 09:30 AM   #2
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
the version of bind you are using is likely chroot'ed.
rather than editing /etc/named.conf & /var/named/db.example.com
you should start as if /var/named/chroot/ = /
so you would be editing /var/named/chroot/etc/named.conf & /var/named/chroot/var/named/db.example.com

hope this helps
 
Old 07-20-2005, 10:08 AM   #3
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

did you check the /var/named/db.example.com permissions?
 
Old 07-20-2005, 10:46 AM   #4
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Original Poster
Rep: Reputation: 31
The version of BIND that i am using is chroot'ed so that has been corrected. The named service starts , finally!
As for the permissions... I forget how to check that at the moment. chmod, then what?

Now i have another problem. i have a laptop that's set under the (supposed) DNS server. When i try to ping or do a "whois" command it just hangs. I don't have the slightest clue as to what it might be doing. I know this is very little information but i don't know what type of information might be needed to begin the troubleshooting.
 
Old 07-20-2005, 11:15 AM   #5
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

as for permissions, 'ls -l' will give you every info...

what do you mean by "hang": you have no output and it stops, you've got to ^C the command or it freezes your laptop?
 
Old 07-20-2005, 05:41 PM   #6
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Original Poster
Rep: Reputation: 31
By hanging I mean there's no output. I think that i didnt set up my routing commands correctly. The laptop can resolve the IP address for a website (like www.google.com). But I think there's a problem on the receiving side.

*****EDIT
If it means anything the client laptop reports being on the local domain (localhost.localdomain).

*****EDIT #1
Nevermind the post guys. There was a forwading issue that I didn't take care of in the firewall. It works just fine now. Thanks for the help

Last edited by gizza23; 07-20-2005 at 07:56 PM.
 
  


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
First time using MS in a while-ooooh the agony slackist General 11 11-09-2004 10:14 AM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
Linux working on my laptop...after months of agony caesius_01 LinuxQuestions.org Member Success Stories 0 03-21-2004 04:10 AM
Java Agony!!! je_fro Linux - Software 15 06-01-2003 08:02 PM
the pain, the agony with mplayer install scottyman Linux - Software 3 02-14-2003 05:04 AM

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

All times are GMT -5. The time now is 09:05 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