Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have Fedora 7. I have two domain names with godaddy.com and one dedicated machine with them. I have three IPs for that machine. For my domain settings for exampleproblems.com I have the two dns servers as ns1.exampleproblems.com and ns2.exampleproblems.com pointing to two of the IPs, 68.178.250.214 and 68.178.250.215. For the other domain culturalconnections.cc I have the two dns servers as ns1 and ns2.culturalconnections.cc with the same two IPs.
I have these IPs registered with my eth0 device and I can ping them from anywhere.
named is up and running.
Here is my named.conf (actually it uses named.caching-nameserver.conf)
//
// named.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
$TTL 1
@ IN SOA exampleproblems.com. elliptic1@gmail.com (
2007012901 ; serial
6H ; refresh after 6 hours
1H ; retry after 1 hour
1W ; expire after 1 week
1H ) ; minimum TTL of 1 day
@ IN NS ns1.exampleproblems.com.
@ IN NS ns2.exampleproblems.com.
localhost IN A 127.0.0.1
ns1 IN A 68.178.250.214
ns2 IN A 68.178.250.215
$TTL 1
@ IN SOA culturalconnections.cc. edenoil@gmail.com (
2007012901 ; serial
6H ; refresh after 6 hours
1H ; retry after 1 hour
1W ; expire after 1 week
1H ) ; minimum TTL of 1 day
@ IN NS ns1.culturalconnections.cc.
@ IN NS ns2.culturalconnections.cc.
localhost IN A 127.0.0.1
ns1 IN A 68.178.250.214
ns2 IN A 68.178.250.215
I also have these virtual host directives in my httpd.conf file. Whichever one I put on top is the website that will come up if I type on of the IPs into a browser.
; <<>> DiG 9.4.2 <<>> exampleproblems.com
;; global options: printcmd
;; connection timed out; no servers could be reached
# dig +tcp exampleproblems.com
;; Connection to 68.178.250.214#53(68.178.250.214) for exampleproblems.com failed: connection refused.
;; Connection to 68.178.250.215#53(68.178.250.215) for exampleproblems.com failed: connection refused.
;; Connection to 68.178.250.214#53(68.178.250.214) for exampleproblems.com failed: connection refused.
;; Connection to 68.178.250.215#53(68.178.250.215) for exampleproblems.com failed: connection refused.
; <<>> DiG 9.4.2 <<>> culturalconnections.cc
;; global options: printcmd
;; connection timed out; no servers could be reached
# dig +tcp culturalconnections.cc
;; Connection to 68.178.250.214#53(68.178.250.214) for culturalconnections.cc failed: connection refused.
;; Connection to 68.178.250.215#53(68.178.250.215) for culturalconnections.cc failed: connection refused.
;; Connection to 68.178.250.214#53(68.178.250.214) for culturalconnections.cc failed: connection refused.
;; Connection to 68.178.250.215#53(68.178.250.215) for culturalconnections.cc failed: connection refused.
I assume that your problem/question is, that when looking up non-existant names, instead of an NXDOMAIN error, you get a timeout. (I'm not sure though why you included part of your apache conf.)
Anyway, I'm not sure if it is the cause, but: Your bind config is missing definitions for the "localhost" and "127.in-addr.arpa" zones, which can make dns break in all kinds of non-obvious ways.
So you should add those first (actullay they should have been there from a standard install) and see if your problem persists.
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251
Rep:
I would also try this at the command line/terminal:
Quote:
dig +trace DOMAIN_NAME
It gives you some extra info regarding the domain and its DNS settings.
This is what I got for one of your domains running the above command:
Quote:
; <<>> DiG 9.3.3rc2 <<>> +trace culturalconnections.cc
;; global options: printcmd
. 67700 IN NS m.root-servers.net.
. 67700 IN NS f.root-servers.net.
. 67700 IN NS e.root-servers.net.
. 67700 IN NS b.root-servers.net.
. 67700 IN NS j.root-servers.net.
. 67700 IN NS i.root-servers.net.
. 67700 IN NS h.root-servers.net.
. 67700 IN NS c.root-servers.net.
. 67700 IN NS d.root-servers.net.
. 67700 IN NS g.root-servers.net.
. 67700 IN NS a.root-servers.net.
. 67700 IN NS k.root-servers.net.
. 67700 IN NS l.root-servers.net.
;; Received 452 bytes from 192.168.0.1#53(192.168.0.1) in 13 ms
cc. 172800 IN NS D5.NSTLD.COM.
cc. 172800 IN NS C5.NSTLD.COM.
cc. 172800 IN NS G5.NSTLD.COM.
cc. 172800 IN NS A5.NSTLD.COM.
cc. 172800 IN NS H5.NSTLD.COM.
cc. 172800 IN NS L5.NSTLD.COM.
cc. 172800 IN NS F5.NSTLD.COM.
;; Received 280 bytes from 202.12.27.33#53(m.root-servers.net) in 47 ms
culturalconnections.cc. 172800 IN NS NS1.culturalconnections.cc.
culturalconnections.cc. 172800 IN NS NS2.culturalconnections.cc.
;; Received 108 bytes from 192.31.80.34#53(D5.NSTLD.COM) in 44 ms
;; connection timed out; no servers could be reached
It looks like your BIND config is messed up, as rupertwh said. You could try uninstalling your BIND services and re-installing. When your BIND/DNS is messed it can be a real pain, I am certainly not an expert on it but your BIND/DNS.conf file doesn't look like mine.... I cannot post my as I have information in it that I do not want to share - my clients info is private.
rupertwh - The localhost and the other definitions are included in another file and maybe I didn't copy the include line to the message I sent. My question is not about what should happen when I look up a non-existent domain- it's that I don't want my domain to be non-existent!
I included part of my apache conf because I didn't know if it was important and I decided to err on the side of too much information rather than too little.
My question is not about what should happen when I look up a non-existent domain- it's that I don't want my domain to be non-existent!
The only A records you have are for ns1 and n2. There is none for "exampleproblems.com". (but actually, on a working dns, dig seems to just return the SOA record when querying the domain name)
Your problem seems to come up whenever a lookup fails, as in
Code:
dig foo.exampleproblems.com
vs.
Code:
dig ns1.exampleproblems.com
Doesn't bind have any useful information in the log files?
When I do a dig, there's nothing in /var/log/messages, and nothing has ever been written to the specified log file in /var/named/data/named.run. Where else can I look?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.