LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS Agony! (https://www.linuxquestions.org/questions/linux-networking-3/dns-agony-344990/)

gizza23 07-20-2005 08:52 AM

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!!!

mhallbiai 07-20-2005 09:30 AM

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

fr_laz 07-20-2005 10:08 AM

Hi,

did you check the /var/named/db.example.com permissions?

gizza23 07-20-2005 10:46 AM

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.

fr_laz 07-20-2005 11:15 AM

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?

gizza23 07-20-2005 05:41 PM

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


All times are GMT -5. The time now is 06:20 AM.