LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setup BIND for Local Domain and hosting domain (https://www.linuxquestions.org/questions/linux-networking-3/setup-bind-for-local-domain-and-hosting-domain-511193/)

ALInux 12-16-2006 05:58 PM

Setup BIND for Local Domain and hosting domain
 
Hi Guys
I have this setup where the linux box is the main firewal router and DNS server and i have got another windows 2003 server that acts as an active directory server for the local computers.The local domain is lb.testdomain.org . I have setup BIND on the sarge linux box such that all the entries to lb.testdomain.org are forwarded to the windows domain server so that users can login without having their requests routed to the internet and thus having to wait endlessly. However I have a problem, the mail server of the company is located on the internet and called mail.lb.testdomain.org I solved that problem by using a CNAME and manually mapping the mail entry under the lb.testdomain.org. zone. This worked however the mail servers IP address turned out to be dynamic and not static..so I would like to add an entry to my lb.testdomain.org that forward any request to mail.lb.testdomain.org to the DNS of my ISP instead of having to map it manually or instead of allowing it to be forwarded to my domain server.

I have read that adding a ns entry could help but I would like to see an example if possible, or any hints in the right direction please.
Thx for any suggestions.

chort 12-17-2006 12:01 AM

You should be able to add something like this to your zone for lb.testdomain.org.
Code:

mail    IN NS isp.dns.server1.
mail    IN NS isp.dns.server2.

And make sure you don't have any other entries for mail.lb.testdomain.org in your zone file.

ALInux 12-17-2006 04:03 AM

Thx..exactly what I was looking for..
Cheers..

chort 12-17-2006 06:30 AM

Gah, I forgot the trailing periods! Biggest nub mistake in BIND is forgetting the trailing periods. Make sure you have those...

ALInux 12-19-2006 02:26 AM

Do i have to add a trailing dot the dns server if it is and IP too ?
Thx


All times are GMT -5. The time now is 11:01 PM.