+ Reply to Thread
Results 1 to 5 of 5

Thread: cTld-Am I creating this named.conf file right

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    3

    Default cTld-Am I creating this named.conf file right

    Hello,

    I was given the zone files containing website names (mysite.cad,yoursitename.cad) for a ctld (e.g. .cad) and I am creating the master zones using webmin.

    Is this the correct named.conf file that should be generated:

    --------------------------------------------------------------------
    // 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";
    };
    include "/etc/rndc.key";

    zone "cad" {
    type master;
    file "/var/named/chroot/master/cad.zon";
    };
    ------------------------------------------------------------------------

    The Zone file looks like:

    cad. IN SOA dns1.mydomain.com. postmaster.mydomain.com. (
    2006014006; serial
    86400; refresh in secs
    1800; retry in secs
    604800; expire in secs
    43200; minimum in secs
    )
    mysite.cad. 43200 NS ns2.dotster.net.
    yoursitename.cad. 43200 NS ns2.dotster.net.

  2. #2
    bg
    bg is offline
    The Ape
    Join Date
    Apr 2007
    Posts
    12

    Default

    If you are running on a closed network, that should be sufficient (although you still need to add actual A records to your zone file for anything to resolve).

    For recursion (using this nameserver to resolve anything other than your .cad), you should define a hints file at a minimum. Here's a typical starting point (stolen from a redhat box) for your named.conf for an internet connected DNS server (on most packaged Bind installations these files referenced should exist, but if they don't they are pretty easy to get or generate, for example, the hints file can be downloaded from www .internic.net/zones/named.root .. just remove the space):

    Code:
    // generated by named-bootconf.pl
    
    options {
    	directory "/var/named";
    	/*
    	 * If there is a firewall between you and nameservers you want
    	 * to talk to, you might need to uncomment the query-source
    	 * directive below.  Previous versions of BIND always asked
    	 * questions using port 53, but BIND 8.1 uses an unprivileged
    	 * port by default.
    	 */
    	// query-source address * port 53;
    };
    
    // 
    // a caching only nameserver config
    // 
    controls {
    	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };
    zone "." IN {
    	type hint;
    	file "named.ca";
    };
    
    zone "localhost" IN {
    	type master;
    	file "localhost.zone";
    	allow-update { none; };
    };
    
    zone "0.0.127.in-addr.arpa" IN {
    	type master;
    	file "named.local";
    	allow-update { none; };
    };
    
    include "/etc/rndc.key";

    The Zone file looks like:

    cad. IN SOA dns1.mydomain.com. postmaster.mydomain.com. (
    2006014006; serial
    86400; refresh in secs
    1800; retry in secs
    604800; expire in secs
    43200; minimum in secs
    )
    mysite.cad. 43200 NS ns2.dotster.net.
    yoursitename.cad. 43200 NS ns2.dotster.net.
    Just a note on serial numbers. While it's not required, the typical format of the serial number for easy updates is YYYYMMDDVV, where YYYY = 4 digit year, MM = 2 digit month, DD = 2 digit day, and VV = 2 digit version (for multiple updates within a single day). Helps guarantee that whenever you do an update, the number is always increased properly.

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    3

    Default

    Hello,

    Thanks. Actually this nameserver is going be authorative for .cad, so any one on the Internet who needs to navigate to a .cad website will eventually receive it from this server.


    Actually the zone files that I received don't contain A records, just the domain name and the name servers as I showed in my example. Not sure why, maybe a mistake?

  4. #4
    bg
    bg is offline
    The Ape
    Join Date
    Apr 2007
    Posts
    12

    Default

    Actually you are trying to create a root zone, I misunderstood exactly what you were doing before. That's a little more complex and I'll have to think about that one.

  5. #5
    Junior Member
    Join Date
    Apr 2007
    Posts
    3

    Default

    Hello,

    Sure, looking forward to that.

+ Reply to Thread

Posting Permissions

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