Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1012
  • Last Modified:

Configuring DNS

Ok, here's my setup now:

I registered nucleardog.com with GoDaddy. I set up two hosts for nucleardog, ns1.nucleardog.com and ns2.nucleardog.com, both pointing to my IP, 24.72.35.15.

On that computer, I have bind running. I have two firewall openings on port 53, one for TCP one for UDP, since I'm not 100% sure which it runs on. Anyway, my problem is that dig is not reporting the correct ip for anything. It reports:

------------------------------------------
; <<>> DiG 9.2.1 <<>> nucleardog.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 14930
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;nucleardog.com.                        IN      A

;; Query time: 120 msec
;; SERVER: 204.83.142.2#53(204.83.142.2)
;; WHEN: Thu Apr 22 13:05:50 2004
;; MSG SIZE  rcvd: 32
------------------------------------------

I am fairly sure named is running:
[root@INSANITY root]# ps -Al | grep named
1 S    25  4138     1  0  85   0    -  2849 rt_sig ?        00:00:00 named
1 S    25  4141  4138  0  75   0    -  2849 schedu ?        00:00:00 named
5 S    25  4142  4141  0  75   0    -  2849 rt_sig ?        00:00:00 named
1 S    25  4143  4141  0  75   0    -  2849 schedu ?        00:00:00 named
1 S    25  4144  4141  0  75   0    -  2849 schedu ?        00:00:00 named

So, what is the problem here? My dns configuration files are all available at http://insanelands.selfhost.com/dns. I am trying to run a mail\web server. Obviously the DNS system and how it works is not one of my strong spots, so any help is appreciated.

Thanks,
Adam
0
TheASP
Asked:
TheASP
  • 2
  • 2
  • 2
  • +1
1 Solution
 
TheASPAuthor Commented:
Oops, forgot to mention that I set the name servers for nucleardog.com to ns1.nucleardog.com and ns2.nucleardog.com (I know you're supposed to have two seperate nameservers, but I have nowhere else to host the records).

Adam
0
 
azharnizamCommented:
Asp ,

i`m also running on single dns server and it works fine. sorry to ask...are u having a prob on configuring the DNS server or the DNS server already configured but still having a problem?
0
 
td_milesCommented:
first step:
http://www.tldp.org/HOWTO/DNS-HOWTO.html

I had a look at your config files. I'm not sure if you need to add the line:
   allow-query { any;};
to your "nucleardog.com" zone section to make sure that it will answer queries.

restart the named daemon (service named restart) then look in /var/log/messages to make sure that it is starting up ok.

From a command prompt on you linux box, try the following command:
dig web.nucleardog.com @127.0.0.1
and see what you get (check the log again). I have run a portscan and your server is listening on port 53, so that part appears correct.

You have also specified the MX record for email to be "mail" which is fine, but you haven't defined an "A" record for the server "mail" anywhere. This won't be stopping things from working, but means that when thigns do work, you won't get email until you sort that out.

A good utility to check your zone file is "named-checkzone". If I run it against you zone file, it generates the following:
(I copied your zoen file to "nd.com")
===============
[/etc 12:47:50] # named-checkzone nucleardog.com /var/named/zone/nd.com
dns_master_load: /var/named/zone/nd.com:21: unknown RR type 'ns1'
dns_master_load: /var/named/zone/nd.com:22: unknown RR type 'ns2'
dns_master_load: /var/named/zone/nd.com:23: unknown RR type 'web'
dns_master_load: /var/named/zone/nd.com:26: unknown RR type 'www'
zone nucleardog.com/IN: loading master file /var/named/zone/nd.com: unknown class/type
===============

anyway, there are some starters for you...
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
azharnizamCommented:
Sorry because forgot to checked your configuration...but try look at http://www.experts-exchange.com/Networking/Linux_Networking/Q_20705680.html for configuring the dns server.This can be applied either internal or public DNS.Hope it can help..
0
 
bobgunzelCommented:
ns1.nucleardog.com and ns2.nucleardog.com are NOT the name servers for the nucleardog.com domain. You can't just set up a name server and expect it to be found. Authority for nucleardog.com has to be specifically delegated to your name server. If you are the technical contact for nucleardog.com you can do it yourself at NETSOL - www.networksolutions.com - or you'll have to ask GoDaddy to do it for you.

Bob Gunzel
0
 
bobgunzelCommented:
I don't think you have set up the name server correctly. host nucleardog.com 24.72.35.15 answers "Host nucleardog.com not found".
0
 
TheASPAuthor Commented:
Thank you td_miles!

Ok, here's how I fixed it:

named-checkzone reported that the file was bad, so did the log files (Why didn't I check those in the first place? Then again everything seems obvious in hindsight.). I went to the how-to you linked to and rewrote the zone file, rebooted named and it works now :) :) :)

That was really making me mad. Thanks a ton for helping with that.

(If I had more points I'd give you more)

ASP
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now