Hi,<br><br>Just a minor additional suggestion: since this is for a home network, you probably have DNS servers supplied by your ISP.  You should configure your named server as a forwarder rather than doing your own full resolution, e.g., add <br>
<br>        forward only;<br>        forwarders {<br>                68.87.76.178;<br>                68.87.78.130;<br>        };<br><br>to your named.conf options section.  The values above are for Comcast in San Jose, you'll need to change them!<br>
<br>Take care,<br>Michael.<br><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 11:47 AM, Seann Clark <span dir="ltr"><<a href="mailto:nombrandue@tsukinokage.net">nombrandue@tsukinokage.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok, with setting up the domain server, the key thing to consider, is this going be able to be queried from the internet? If so, then yes you need to register a domain, to avoid confusion and issues. If this is just going to be isolated to your local network, and not accessible outside of your network, you won't have to register a domain.<br>

<br>
<br>
I hope that clarifies it a little bit for you<br>
<br>
<br>
<br>
GMS S wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is it necessary to register a domain name for setting up a dns server?<br>
Though reading ,it is not clear to me.<br>
<br>
Thanks.<br>
<br>
--- On *Wed, 1/28/09, Seann Clark /<<a href="mailto:nombrandue@tsukinokage.net" target="_blank">nombrandue@tsukinokage.net</a>>/* wrote:<br>
<br>
<br>
    From: Seann Clark <<a href="mailto:nombrandue@tsukinokage.net" target="_blank">nombrandue@tsukinokage.net</a>><br>
    Subject: Re: How to set up a DNS server(at Home)<br>
    To: <a href="mailto:gmspro@yahoo.com" target="_blank">gmspro@yahoo.com</a>, "Community assistance, encouragement, and<br>
    advice for using Fedora." <<a href="mailto:fedora-list@redhat.com" target="_blank">fedora-list@redhat.com</a>><br>
    Date: Wednesday, January 28, 2009, 10:35 PM<br>
<br>
    <a href="mailto:gmspro@yahoo.com" target="_blank">gmspro@yahoo.com</a> </mc/compose?to=<a href="mailto:gmspro@yahoo.com" target="_blank">gmspro@yahoo.com</a>> wrote:<br>
    > Hi,<br>
    > Typing this "rpm -q bind" got this:<br>
    > bind-9.5.1-0.8.b2.fc10.i386<br>
    ><br>
    > In "named.conf file" I got this:<br>
    ><br>
    > //<br>
    > // named.conf<br>
    > //<br>
    > // Provided by Red Hat bind package to configure the ISC BIND<br>
    named(8) DNS<br>
    > // server as a caching only nameserver (as a localhost DNS<br>
    resolver only).<br>
    > //<br>
    > // See /usr/share/doc/bind*/sample/ for example named<br>
    configuration files.<br>
    > //<br>
    ><br>
    > options {<br>
    >     listen-on port 53 { 127.0.0.1; };<br>
    >     listen-on-v6 port 53 { ::1; };<br>
    >     directory     "/var/named";<br>
    >     dump-file     "/var/named/data/cache_dump.db";<br>
    >         statistics-file "/var/named/data/named_stats.txt";<br>
    >         memstatistics-file "/var/named/data/named_mem_stats.txt";<br>
    >     allow-query     { localhost; };<br>
    >     recursion yes;<br>
    > };<br>
    ><br>
    > logging {<br>
    >         channel default_debug {<br>
    >                 file "data/named.run";<br>
    >                 severity dynamic;<br>
    >         };<br>
    > };<br>
    ><br>
    > zone "." IN {<br>
    >     type hint;<br>
    >     file "<a href="http://named.ca" target="_blank">named.ca</a>";<br>
    > };<br>
    ><br>
    > include "/etc/named.rfc1912.zones";<br>
    ><br>
    > And in "named.rfc1912.zones"<br>
    ><br>
    > // named.rfc1912.zones:<br>
    > //<br>
    > // Provided by Red Hat caching-nameserver package<br>
    > //<br>
    > // ISC BIND named zone configuration for zones recommended by<br>
    > // RFC 1912 section 4.1 : localhost TLDs and address zones<br>
    > // and<br>
    <a href="http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt" target="_blank">http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt</a><br>
    > // (c)2007 R W Franks<br>
    > //<br>
    > // See /usr/share/doc/bind*/sample/ for example named<br>
    configuration files.<br>
    > //<br>
    ><br>
    > zone "localhost.localdomain" IN {<br>
    >     type master;<br>
    >     file "named.localhost";<br>
    >     allow-update { none; };<br>
    > };<br>
    ><br>
    > zone "localhost" IN {<br>
    >     type master;<br>
    >     file "named.localhost";<br>
    >     allow-update { none; };<br>
    > };<br>
    ><br>
    > zone<br>
    "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"<br>
    IN {<br>
    >     type master;<br>
    >     file "named.loopback";<br>
    >     allow-update { none; };<br>
    > };<br>
    ><br>
    > zone "1.0.0.127.in-addr.arpa" IN {<br>
    >     type master;<br>
    >     file "named.loopback";<br>
    >     allow-update { none; };<br>
    > };<br>
    ><br>
    > zone "0.in-addr.arpa" IN {<br>
    >     type master;<br>
    >     file "named.empty";<br>
    >     allow-update { none; };<br>
    > };<br>
    ><br>
    > Can anyone explain the file contents in detail and about <a href="http://named.ca" target="_blank">named.ca</a>?<br>
    > And what I have to do in step by step to set up a dns server ?<br>
    ><br>
    > PC configuration(Home):<br>
    > Processor:Intel Pentium D 2.66GHz<br>
    > Ram:1GB<br>
    > Hard Disk:80GB<br>
    ><br>
    ><br>
    ><br>
    I hate to plug books, but this may be the easiest way to get an<br>
    good explanation to a home user of the components on a DNS server.<br>
    Check out <a href="http://my.safaribooksonline.com/0596100574" target="_blank">http://my.safaribooksonline.com/0596100574</a> Which is the<br>
    DNS BIND book, which is a very valuable asset when learning DNS.<br>
<br>
<br>
    In a quick nutshell, the <a href="http://named.ca" target="_blank">named.ca</a> file contains the IP addresses<br>
    and names of the 'root' DNS servers in the world. These are the<br>
    'dot' in your .com/.net etc (actually it is the dot AFTER the .com<br>
    but that is a little complex to get into) That file helps you find<br>
    the DNS server of the domain you are after, starting at the root,<br>
    or . and working down to, say if you are looking for<br>
    <a href="http://www.google.com" target="_blank">www.google.com</a>, going from the . DNS to the .com DNS to the<br>
    <a href="http://google.com" target="_blank">google.com</a> DNS.<br>
<br>
    Simplest way to set up a home DNS, copy the<br>
    'localhost.localdomain' file, keep everything down past to the NS<br>
    listings (I believe it should be NS  localhost in that line) and<br>
    then add in your hostnames and IP's in a format like<br>
<br>
<br>
    host1            IN A   10.1.1.1<br>
    host2            IN A   10.1.1.2<br>
    host3            IN A   10.1.1.3<br>
<br>
<br>
    Where IN is the most common use that you will find and works well<br>
    in this situation (Stands for Internet Name, I believe) and A<br>
    stands for the type of record. You can, after you have a few A<br>
    entires, add in a CNAME like this<br>
<br>
<br>
    alias      IN CNAME   <a href="http://host1.domain.net" target="_blank">host1.domain.net</a><br>
<br>
<br>
<br>
    After you are done with this, you need to copy named.loopback and<br>
    remove the same portion in that file as you did with the first<br>
    file we edited. The format in this is a little different. If your<br>
    network IP range is as describe above you would have to add in the<br>
    following entires:<br>
<br>
    1         IN PTR  <a href="http://host1.domain.net" target="_blank">host1.domain.net</a>.<br>
    2         IN PTR  <a href="http://host2.domain.net" target="_blank">host2.domain.net</a>.<br>
    3         IN PTR  <a href="http://host3.domain.net" target="_blank">host3.domain.net</a>.<br>
<br>
<br>
    Where PTR stands for pointer, and this provides IP to name resolution.<br>
<br>
<br>
    your completed new domain file should be set up like this:<br>
<br>
    $ORIGIN .<br>
    $TTL 86400      ; 1 day<br>
    <a href="http://domain.net" target="_blank">domain.net</a>         IN SOA  <a href="http://dns.domain.net" target="_blank">dns.domain.net</a>. <a href="http://root.domain.net" target="_blank">root.domain.net</a>. (<br>

                                   2009012801 ; serial - When updating<br>
    the file, use current date and revision number as follows : yyyymmddrr<br>
                                   10800      ; refresh (3 hours)<br>
                                   900        ; retry (15 minutes)<br>
                                   604800     ; expire (1 week)<br>
                                   86400      ; minimum (1 day)<br>
                                   )<br>
                           NS      <a href="http://dns.domain.net" target="_blank">dns.domain.net</a><br>
                  host1            IN A   10.1.1.1<br>
    host2            IN A   10.1.1.2<br>
    host3            IN A   10.1.1.3<br>
<br>
<br>
<br>
    And your pointer record should look similar to that<br>
    (1.1.10.in-addr.arpa instead of <a href="http://domain.net" target="_blank">domain.net</a> in the IN SOA line.)<br>
<br>
    After that, in your named.conf file you need to add in those two<br>
    new files into the configurations:<br>
<br>
<br>
    zone "<a href="http://domain.net" target="_blank">domain.net</a>" IN {<br>
       type master;<br>
       file "<a href="http://domain.net" target="_blank">domain.net</a>";<br>
       allow-update { none; };<br>
    };<br>
<br>
    zone "1.1.10.in-addr.arpa" IN {<br>
       type master;<br>
       file "1.1.10.conf";<br>
       allow-update { none; };<br>
    };<br>
<br>
    After you start named up (service start named) if it starts file,<br>
    you should be good to go. Since this is a fedora system named runs<br>
    by default in a chroot jail so you can find all the files under:<br>
    /var/named/chroot/<br>
<br>
    to check the logs for your troubleshooting if you have issues,<br>
    should be in /var/named/chroot/var/log or in /var/log depending on<br>
    how  it is set up. I don't remember completely since it has been a<br>
    long time since I have used default logging on a DNS.<br>
<br>
    Few Gotcha's:<br>
    in the PTR file, remember periods at the end of the lines for the<br>
    host names. In the named.conf, make sure you didn't forget a<br>
    semi-colon, as these are a royal pain to find (the logs give you<br>
    an approximate position as to where it was missing/broke, but<br>
    nothing exact) and it can be trying on the eyes. Also make sure if<br>
    you use a firewall that TCP and UDP port 53 is opened.<br>
<br>
<br>
    Regards,<br>
    Seann<br>
<br>
<br>
</blockquote>
<br>
<br>--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br></blockquote></div><br><br clear="all"><br>-- <br>
=========================<br>Michael Rohan<br>Stone Pillar Technologies<br>=========================<br><br>