How to test my name server

Discussion in 'Installation/Configuration' started by Appie Thrasher, Jun 18, 2010.

  1. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    How to test my name server & email server

    I just want to know how to test my name server and if I have set it up right?
    ( my dns settings attached) [​IMG]

    I have found in a topic to use:
    Code:
    dig @ns1.dcs-online.nl powerfromhell.com
    if I do that I get:
    Code:
    server1:~# dig @ns1.dcs-online.nl powerfromhell.com
    dig: couldn't get address for 'ns1.dcs-online.nl': not found
    
    I can reach powerfromhell.com in my browser guess its still reachable trough the second ns (mydns.org) but that one I want to chance also if all the sites are moved from my local server to the server at the DC.

    TIA
     
    Last edited: Jun 27, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed the dots at the end of the fully qualified domain names ( in all your CNAME records). In DNS, every FQDN has to end with a dot. Only relative dns Records like "www" do not end with a dot.
     
  3. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Stupid Me, posted the wrong image..
    the right one:
    [​IMG]

    Here I also aded the NS1 as a a record, I found that in an other topic.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    What you need is a glue record for ns1.dcs-online.nl which has to be setup in the dns server of the domain registry. Glue records are nescessary in a case where the ns2 is a subdomain of the zone which is the case in your setup (ns1.dcs-online.nl is a subdomain of dcs-online.nl). Thats the "hen <==> egg" problem. To lookup the zone dcs-online.nl one have to know ns1.dcs-online.nl, but ns1.dcs-online.nl is part of this zone, so it can not be looked up. The solution is the glue records, which can be setup in the dns server of the .nl registry.

    More info:

    http://en.wikipedia.org/wiki/Domain_Name_System
    http://faq.domainmonster.com/dns/glue_record/
     
  5. jtullous

    jtullous New Member

    Till,

    Are you refering to an A record of NS1 to Ip address for the domain?

    If you have the Nameserver setup to go to ns1.example.com and it follows xxx.xxx.xxx.xxx would you also want to have the an A record of ns1 point to the xxx.xxx.xxx.xxx

    Good practice?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I'am talking about glue records, glue records are DNS A-Records, but theiy ahve to be set in the dns server of the registry and not your local DNS server. Please see the links above for a in depth explanation on glue records.
     
  7. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Thanks to your links I have setup the nameserver with the glue record. Hope all has gone well.

    One question left the mail server is setup right this way?
    So my users just use pop3.dcs-online.nl & smtp.dcs-online.nl?

    I guess I will notice in a few hours when the next refresh is completed...
     
  8. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    I dont think things are setup as it should be. I can test the name server with dig command.
    Code:
    server1:~# dig @ns1.dcs-online.nl dcs-online.nl
    
    ; <<>> DiG 9.6-ESV-R1 <<>> @ns1.dcs-online.nl dcs-online.nl
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46077
    ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
    ;; WARNING: recursion requested but not available
    
    ;; QUESTION SECTION:
    ;dcs-online.nl.                 IN      A
    
    ;; ANSWER SECTION:
    dcs-online.nl.          86400   IN      A       94.142.244.62
    
    ;; AUTHORITY SECTION:
    dcs-online.nl.          86400   IN      NS      ns1.dcs-online.nl.
    dcs-online.nl.          86400   IN      NS      ns1.mydyndns.org.
    
    ;; ADDITIONAL SECTION:
    ns1.dcs-online.nl.      86400   IN      A       94.142.244.62
    
    ;; Query time: 0 msec
    ;; SERVER: 94.142.244.62#53(94.142.244.62)
    ;; WHEN: Sun Jun 27 22:18:39 2010
    ;; MSG SIZE  rcvd: 111
    
    server1:~#
    server1:~#
    
    But I noticed one warning message in the output.
    Also I cant send any email out if I test send with outlook the smtp server works but the pop3 server doesn't

    Any help would be very appreciated...[​IMG]
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    This looks all fine and the warning is ok too.

    Regarding the pop3 server issue, please look in the mail log and post the error message(s).
     
  10. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    All is working now but I had to make setting I dont want to.
    It was only starting to work after I had made the pop3 & webmail zone with my dyndns account.
    So I am guessing that my own name server isn't working as it is suppose to do.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    I was not aware that you run this server on a dns line with dynamic IP. As far as I know, you can not run a dns server on a dynamic IP.

    Your name server is working fine as the dig output above shows. But the dynmic IP might prevent that others can see it from the internet. Additionally, if you can add records for this server in this other nameserver, then the other nameserver is the authoritive dns server for your domain and not your server.
     
  12. Appie Thrasher

    Appie Thrasher Member HowtoForge Supporter

    Till,

    Sorry if I was not clear,
    But the server has its own static ip adrress in a data center.

    I only got things up and running when I entered the zones in mine mydns acount, that i still have because off my previous homeserver.

    And yes I have chanced the settings with my registar so the primary nameserver off the domain is my own with a glue record (its ip address)

    Could it be something with reverse dns settings? I have red something about that although I not understand it that much.
    The way I think its working is dns sets a name to an IP and revers dns sets an ip to a name....
     

Share This Page