LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2006, 06:58 PM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
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.

Last edited by ALInux; 12-16-2006 at 07:09 PM.
 
Old 12-17-2006, 01:01 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
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.

Last edited by chort; 12-17-2006 at 07:30 AM.
 
Old 12-17-2006, 05:03 AM   #3
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
Thx..exactly what I was looking for..
Cheers..
 
Old 12-17-2006, 07:30 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Gah, I forgot the trailing periods! Biggest nub mistake in BIND is forgetting the trailing periods. Make sure you have those...
 
Old 12-19-2006, 03:26 AM   #5
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

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


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
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 06:58 AM
passwd: can't get local yp domain: Local domain name not set powah Linux - Security 4 06-08-2006 10:59 AM
Cant get entry in bind to work with domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 07:20 AM
Hosting a domain!? :( lordxero Linux - Networking 1 06-24-2003 02:45 AM
domain &hosting?? farhan Linux - Networking 2 04-18-2003 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:51 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