Learn how to a build a cloud-first strategyRegister Now


Configuring DNS

Posted on 2004-04-22
Medium Priority
Last Modified: 2012-08-14
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,

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

;nucleardog.com.                        IN      A

;; Query time: 120 msec
;; 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.

Question by:TheASP
  • 2
  • 2
  • 2
  • +1

Author Comment

ID: 10892594
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).


Expert Comment

ID: 10895690
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?
LVL 13

Accepted Solution

td_miles earned 1820 total points
ID: 10895812
first step:

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 @
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...
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.


Expert Comment

ID: 10896832
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..

Expert Comment

ID: 10897392
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

Expert Comment

ID: 10897424
I don't think you have set up the name server correctly. host nucleardog.com answers "Host nucleardog.com not found".

Author Comment

ID: 10904543
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)


Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Loops Section Overview
Suggested Courses

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question