[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: checking other dns server for particular subdomains



On Thu, 2003-04-24 at 08:58, Shri Shrikumar wrote:
> Hi,
> 
> I own a domain name and would like to have the internal network name the
> same as the domain and have the internal machines as part of the domain
> etc as in,
> 
> server.domain.com
> machine1.domain.com
> internalweb.domain.com and so on.
> 
> The website is hosted elsewhere though and so is the mail email server
> which causes some problems since trying to access the web from inside
> the network causes the name not found error.
> 
> Is there a way to get the internal DNS server to point to an external
> DNS server for specific subdomains ?
> 
> I have not installed a DNS server yet so am flexible on that to get the
> above functionality working.

I'm pretty sure that if you use bind (bind9 preferably) that you can do
the following in your named.conf file:

zone "domain.com" {
	type forward only;
	forwarders {
		external.name.server.ip;
	};
};

zone "internal.domain.com" {
	type master;
	file "/etc/bind/db.domain.com";
};

then in your /etc/bind/db.domain.com you put your zone definitions.
here's a sample one to help you out, but you should probably read one of
the multitude of bind tutorials on the web.

;
; Zone file for okmaybe.com
;
; The full zone file
;
$TTL 3D
@	IN	SOA	border.okmaybe.com.	mrroach.okmaybe.com. (
			2002070701	;
			8H		;
			2H		;
			4W		;
			1D )		;
;
		NS	border		; Name Server
		MX	10 okmaybe.com.	; Primary Mail Exchanger

www		CNAME	okmaybe.com.
okmaybe.com.	A	192.168.100.1
mrlinux		A	192.168.100.2
border		A	192.168.100.1




Reply to: