LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-10-2004, 10:49 AM   #1
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
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?
 
Old 11-10-2004, 12:58 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
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.
 
Old 11-11-2004, 05:34 AM   #3
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
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
 
Old 11-11-2004, 08:30 AM   #4
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 11-11-2004, 03:26 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS and bind kevinm2 Linux - Networking 1 06-15-2005 10:18 PM
Dns (bind) njdownes Linux - Networking 3 02-28-2005 09:15 AM
DNS and bind amjad General 0 02-17-2005 09:19 AM
DNS Bind TKS Linux - Networking 6 05-03-2004 12:30 AM
Bind and DNS thewoz Linux - Newbie 1 10-22-2001 04:25 AM


All times are GMT -5. The time now is 09:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration