-   Linux - Newbie (
-   -   running bind for dns (

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 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 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 can I just configure bind with and and then popluate? If so How?

here are some of my configurations/

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

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

ftp            86400  CNAME  ns
data            86400  CNAME  ns;

and then
dig . 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 05:45 PM.