Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-27-2006, 04:08 PM   #1
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Forward DNS lookup to different DNS Servers

I have an intranet and an internet DNS domain hosted by different servers. What I want to know is can I have a computer inside my LAN get an address, say, from the internal DNS server yet have a query be forwarded to an external DNS server?

I used to host my own website internally, so the was answered by my internal DNS server. I've since changed to an external host for my website, so I took the www hostname out of my internal facing DNS server and added it to the external facing DNS server at my web provider. My problem is now is answered correctly from the outside, but when I type inside my lan, I get a "Server Not Found" error. My internal DNS is setup to forward queries, but apparently it won't forward queries for the network.

I can try to explain it better if this is confusing. I need to know if this is a BIND DNS thing or is my setup messed up somehow.
Old 09-27-2006, 05:19 PM   #2
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Original Poster
Rep: Reputation: 30
Well, nevermind. I added the IP address to the internal DNS and it worked just fine.
Old 09-28-2006, 06:54 AM   #3
Registered: Jul 2006
Location: Suburbs of Lisbon, Portugal
Distribution: Slackware, FreeBSD
Posts: 70

Rep: Reputation: 16
Hello there;

I used to have similar setups to that you describe. Usually, one of my customers had a registered DNS domain which was used also in the intranet. Since the internet services boiled down to web, mail and eventually ftp, all I used to do was add CNAME records for those servers. If the website was hosted at 'hosting.isp.tld' and the intranet/internet domain was '' I'dd add a 'www in cname hosting.isp.tld' to my zone...
These days I prefer to have different namespace for the intranet hosts. Usually I grab the domain name and suffix it with '-lan', like '' -> ''... It's just more practical and less confusing.



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
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 10:04 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 04:43 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 02:50 PM
Cant lookup dns . Trygve Linux - Networking 2 10-23-2003 04:31 PM
DNS Lookup dilberim82 Linux - Networking 3 05-30-2001 06:45 AM

All times are GMT -5. The time now is 01:27 AM.

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