Results 1 to 10 of 10
  1. #1

    Does this DNS setup look correct and question about what IP to point to?

    Hello,
    Here is the named.conf (IPs and domains replaced):
    Code:
    // Default named.conf generated by install of bind-9.2.4-16.EL4
    options {
            directory "/var/named";
            dump-file "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
    };
    zone "example.com" {
            type master;
            file "/var/named/zones/example.com.db";
    };
    zone "111.22.22.in-addr.arpa" {
         type master;
         file "/var/named/zones/111.22.22.rev";
    };
    
    include "/etc/rndc.key";
    Here is the example.com.db :
    Code:
    $TTL 3h
    ;
    ; example.com.db
    ;
    ;SOA records
    @ IN SOA ns1.example.com admin.example.com. (
    
    1 ; serial
    3h ; refresh
    1h ; retry
    1w ; expire
    1h ) ; minimum
    
    ;NS RECORDS
    IN NS ns1.example.com.
    IN NS ns2.example.com.
    IN MX 10 mail.example.com.
    
    example.com. IN A 69.80.225.200
    www IN A 22.22.111.200
    ftp IN A 22.22.111.200
    mail IN A 22.22.111.200
    Here is the 111.22.22.rev:
    Code:
    @ IN SOA ns1.example.com. admin.example.com. (
                            2006081401;
                            28800;
                            604800;
                            604800;
                            86400
    )
    
                         IN    NS     ns1.example.com.
                         IN    NS     ns2.example.com.
    1                    IN    PTR    example.com
    Does the above files look correct?

    Let say I have the IP numbers 22.22.111.200, 22.22.111.201 and 22.22.111.202.

    To what IP numbers do I register the nameservers at my domain registrar? Does it matter? I'm planning to register both ns1.example.com and ns2.example.com to this server, can I for example just register them to 22.22.111.200 and 22.22.111.201?

    Best Regards
    Oskar R

  2. #2
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    179
    The host records that you should register would be the IP address(es) of your DNS server(s). If you just have one server, but multiple IP's, you can register two IP's on the same server.

    Your DNS server should also have corresponding A records for the NS1/NS2 entries, even though this is taken care of by the host records.

    Visit http://www.dnsreport.com/tools/dnsre...in=example.com to see how your DNS checks out.

  3. #3
    Hello,
    When I run at DNS report I get the following errors:
    FAIL Missing nameservers 2 ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers.
    FAIL Lame nameservers
    FAIL SOA Record No valid SOA record came back:

    I've no idea of how to solve that so please help.

    Best Regards
    Oskar R

  4. #4
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    179
    Well you need to register the host records, once you do that things should start working a little better.

  5. #5
    Hello,
    OK, do you mean at the registrar?
    If, and if you can answer, why didn't I have to do that before when I had Cpanel to control my old server with?

    If it is in the server, how do I do it/where do I add it?

    Thanks in advance,
    Oskar R

  6. #6
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    179
    You have to do this at your registrar. There is no way around it, someone must have done it before on your previous server. Whatever you are using for the domains as nameservers MUST have host records set.

  7. #7
    Hello,
    I'm sure no one has done it for me before. The only thing I did was to register ns1 to one IP on my server and ns2 to one IP on my server with the "register nameservers" option. Actually, according to my domain registrar I can't modify my host records at the registrar because I have my own nameservers registrated...

    I mean, isn't that what my "example.com.db" in the first post does?

    Best Regards
    Oskar R

  8. #8
    Join Date
    Jan 2004
    Location
    North Yorkshire, UK
    Posts
    4,164
    Add A records for ns1.example.com and ns2.example.com and that should solve your problem.

    Dan
    █ Dan Kitchen | Technical Director | Razorblue
    █ ddi: (+44) (0)1748 900 680 | e: dkitchen@razorblue.com
    █ UK Intensive Managed Hosting, Clusters and Colocation.
    █ HP Servers, Cisco/Juniper Powered BGP Network (AS15692).

  9. #9
    Just did that and it works now.

  10. #10
    Join Date
    Sep 2005
    Location
    Southern California
    Posts
    179
    Quote Originally Posted by SWEoNET
    Hello,
    I'm sure no one has done it for me before. The only thing I did was to register ns1 to one IP on my server and ns2 to one IP on my server with the "register nameservers" option. Actually, according to my domain registrar I can't modify my host records at the registrar because I have my own nameservers registrated...

    I mean, isn't that what my "example.com.db" in the first post does?

    Best Regards
    Oskar R
    The "register nameservers" option would be the same option as "register host records" so that is the same thing that you need to do now.

    Until you do this, nothing will work, regardless of whether or not you add A records in your zone files, as i already suggested earlier.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •