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

Re: CNAME in DNS: having a cname for a different domain than my domain...



On 26 Nov 2002, 08:33:56, Irvin Temp wrote:
> 
> 
> i set up apache and name-base virtualhosting on my 
> box.  my pcs name is home-woody.dm0nkz.net then 
> created a vhost of
> 
> a) vhosta.testing.org
> b) vhostb.dm0nkz.net

OK DNS - my Best Thing

in db.dm0nkz.net:

home-woody	A	192.168.0.1

hanz-woody	A	x.y.z.a (You didn't say what hanz-woody's
											IP address is)

vhostb				CNAME	hanz-woody

(this works, since hanz-woody, without the trailing ., will have the default
domain for this zone file appended automagically, and becomes hanz-woody.dm0nkz.net)

alternatively,

vhostb			CNAME	hanz-woody.dm0nk.net. (is how most bind purists would do it.
 															Note the trailing . to prevent appending the default
															domain for the zone file.)

in db. testing.org

vhosta		CNAME	hanz-woody.dm0nk.net. (the FQDN with the trailing . is required
																					here)

Also, you have to be the primary nameserver for testing.org for this to work.

Finally, in named.conf:

 zone "dm0nkz.net" { 
         type master;
 	file "/etc/bind/db.dm0nkz.net";
 };

zone "testing.org" { 
         type master;
 	file "/etc/bind/db.testing.org";
 };

Once again, assuming you are primary for testing.org . . .  

> so i then created a cname for vhostb.dm0nkz.net and 
> vhosta.testing.com
> 
> like 
> 
> ...
> home-woody.dm0nkz.net.  A  192.168.0.1
> 
> vhosta.testing.org. 		CNAME	hanz-woody
> vhostb				CNAME	hanz-woody
> 
> -------
> 
> I can ping vhostb but not vhosta.testing.org, is there
> wrong with my
> cname for vhosta.testing.org? can i do this at all? or
> i need to setup a
> another zone.. "testing.org" in my named.conf?
> 
> 
> heres my current named.conf...
> 
> ***
> options {
> 	directory "/var/cache/bind";
> 	auth-nxdomain no;    # conform to RFC1035
> };
> 
> zone "." { type hint; file "/etc/bind/db.root";
> };
> 
> zone "0.0.127.in-addr.arpa" { 
>         type master;
> 	file "/etc/bind/db.127";
> };
> 
> // add entries for other zones below here
> 
> zone "mydomain.net" {
>     type master;
>     notify no;
>     file "db.dm0nkz.net";
> };
> 
> zone "0.168.192.in-addr.arpa" {
>     type master;
>     notify no;
>     file "db.0.168.192";	
> };
> ****
> 
> thanks in advance!!!
> 
> 
> John
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> 


-- 
Doug MacFarlane
madmac@covad.net



Reply to: