LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2007, 05:40 AM   #1
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Rep: Reputation: 15
Authoritative dns behind firewall?


I'm trying to learn how to setup dns for my domain, example.com. Right now, example.com is registered and set for register's name servers. Since I only have 1 ip address, all subdomains point to my static ip (let's say 2.2.2.2) and are handled by the firewall.

I want to move from my registrar's name servers to my own. First question: is it possible to make a server behind the firewall (let's say internal network 192.168.0.200) as the name server for the domain? I assume I'd point it to my firewall and route port 53 to 192.168.0.200. Is this correct? If this is the case, then I set the master zone for example.com on the dns. And let's say I have access to some random existing dns server to set as backup. I create a slave zone for example.com, put in 2.2.2.2 in the master ip, and it should be able to pull the dns records from the primary dns server. Is all this correct?

Now that I have two name servers ready for example.com, I want to actually move from my registrar's name servers. Could someone explain to me the logic for setting this up? I assume I want ns1.example.com set as the name server with my registrar, but if the host ns1 is defined on that dns...my brain hurts. (assuming secondary dns is already defined on another domain)

Any information or references you could provide would be greatly appreciated.
 
Old 03-04-2007, 03:09 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Quote:
First question: is it possible to make a server behind the firewall (let's say internal network 192.168.0.200) as the name server for the domain? I assume I'd point it to my firewall and route port 53 to 192.168.0.200. Is this correct?
Yes that is correct, you map the public IPs port 53 (both udp tcp) to the LAN address of the nameserver.

Quote:
I create a slave zone for example.com, put in 2.2.2.2 in the master ip, and it should be able to pull the dns records from the primary dns server. Is all this correct?
Not quite. First you get the master set up perfectly, with the correct records. Then you make a change just in the named.conf file on the slave. You don't create the zone on the slave or put any records in it. You just tell it where to look for the masters, and BIND does all the work itself. The zone entry in the named.conf on the slave should work like this -
Code:
zone "example.com" in {
        type slave;
        file "example.com";
        masters {2.2.2.2;};
};
Quote:
I assume I want ns1.example.com set as the name server with my registrar, but if the host ns1 is defined on that dns...my brain hurts.
All you do initially is set the registrar to look at your public IP for the nameserver. Once it is looking there, then you can change the records from looking at address 2.2.2.2 to looking at ns1.example.com. You should define A records for ns1.example.com and ns2 if you want to call it that, or you can use the public name of the secondary server, which is fine even if it is ns1.othersite.net. First do it by address, then by name. You're right, you'd never get the site if you just told the registrar to look for ns1, it has to be done by numeric address initially.

Peace,
JimBass

Last edited by JimBass; 03-04-2007 at 03:10 PM.
 
  


Reply



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 Refuses to Make Authoritative Queries gizza23 Linux - Networking 6 06-27-2006 08:48 AM
What makes a DNS server authoritative. Strider22 Linux - Networking 1 11-17-2005 01:06 PM
SuSE 9.2 XDM turn "off" authoritative DNS queries confused-but-committ Linux - Software 1 07-29-2005 04:32 PM
sftp - non-authoritative mode turbo_acura Linux - Networking 1 10-26-2004 05:49 PM
authoritative dns how to viperusn Linux - Networking 7 03-21-2004 11:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration