Setting up an internal caching dns server with internal web server
Barry Margolin
barmar at alum.mit.edu
Wed Mar 23 05:05:44 UTC 2005
In article <d1pqe4$670$1 at sf1.isc.org>, skydiver_morgan at yahoo.com wrote:
> I am trying to setup an internal dns server for my network. I am
> hosting websites for several domains on two different FC3 boxes with
> each box assigned an IP address on my local area network. I perform
> port forwarding of 80 traffic to one web server and port 8080 traffic
> to another server via my sonicwall firewall which has my external ip
> address. I have a third box hosting email for one of these 6 domains.
> All public dns resolution currently is handled by public dns servers
> and I wish to maintain this.
>
> I would like to setup a caching name server that will resolve the
> internal network ip addresses when I query th web addresses for the 6
> domains or send and retrieve email via my internal network mail server
> (143,25 and 110 traffic is port forwarded to the mail server from the
> outside). Essentially I need to setup the nameserver as a simple
> caching name server with the addition of A records for each of the
> server addresses that I am hosting in the 6 different domains without
> this dns server becoming the authorative name server for each domain so
> as not to break the mail server's lookup of mx records for mail sent to
> users in the domains for whom I am hosting the websites.
Make it authoritative for the specific names that you're hosting. E.g.
if you're hosting www.foobar.com, put the following in your named.conf:
zone "www.foobar.com" {
type master;
zone "www.foobar.com.db";
};
and then www.foobar.com.db will contain:
@ IN SOA ...
IN NS yourserver.yourdomain.com.
IN A 192.168.1.10
Repeat this for each name you're hosting.
--
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
More information about the bind-users
mailing list