LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running bind for dns (http://www.linuxquestions.org/questions/linux-newbie-8/running-bind-for-dns-253251/)

notolerance 11-10-2004 10:49 AM

running bind for dns
 
Hello all,
I want to be able to run a primary and secondary name sever on a leased line for a friends company. I can configure all aspects on the servers for mysql/apache/php/ftp/bind etc. What I am confused about (let me tell you I have read to 2 weeks on this subject) is how to set up dns that a client can use to resolve my server through there registar.

For example:
I register my domain abc123.com with any regestar.

In my /etc/named.conf file I set up a ns1 and ns2 at my domain and point them to an ip address of the box in question.

What Im missing here is how do I populate this sub-domain as ns1 and ns2 as a part of the domain abc123.com to all of the main dns servers?

Am I way off here?

Mara 11-10-2004 12:58 PM

You configure it on your local DNS server(s). Main DNS servers don't store all hosts in all subdomains. Just the right server to ask about that domain is stored.

notolerance 11-11-2004 05:34 AM

I guess that is my question. as per my example if I own abc123.com can I just configure bind with ns1.abc123.com and ns2.backupabc123.com and then popluate? If so How?

here are some of my configurations/
Code:

;
; /ext/named/abc123.com
;
$TTL    86400 
@      IN      SOA    ns.abc123.com. hostmaster.abc123.com. (
                                2001052800      ; serial, todays date + todays serial #
                                8H              ; refresh, seconds
                                2H              ; retry, seconds
                                1W              ; expire, seconds
                                1D )            ; minimum, seconds
       
              NS      ns.abc123.com.      ; Inet Address of name server
              NS      ns.backup123abc.com.  ; Inet address of backup server
       
              MX  10 mail.abc123.com.    ; Primary Mail Exchanger
       

ns              86400  A      100.200.0.212
                                HINFO  "a486/160/40M" "Linux 2.0"
       
mail            86400  A      100.200.0.212
                                HINFO  "a486/160/40M" "Linux 2.0"
       

ftp            86400  CNAME  ns
       
data            86400  CNAME  ns;


and then
dig @a.root-servers.net . ns > /etc/named/root.hints.db

notolerance 11-11-2004 08:30 AM

I figured it out. My configuration was fine. I had to set up the the ns1-ns2 on seperate external ips and then point them top the regestar at dns entries.

Mara 11-11-2004 03:26 PM

Exactly :) Then you can add hosts to teh configuration file (like ftp or mail in the example you provided).


All times are GMT -5. The time now is 08:27 AM.