resolving dns name to another dns name?

/dev/rob0 rob0 at gmx.co.uk
Fri Aug 5 22:12:23 UTC 2005


David Boyer wrote:
> Okay, I'm being told I can create a CNAME entry that will allow us to 
> resolve a DNS name to another DNS name, basically causing a redirect:
> 
> www.ourdomain.com     IN    CNAME    www.theirdomain.com

Presumably in your zone file you have "$ORIGIN your.domain." (at least 
implied at the top). You are missing the trailing dot. I'll rewrite it 
using example.{com,net}:

$ORIGIN example.com.
www.example.com		IN	CNAME	www.example.net

This yields a RR named "www.example.com.example.com." which is a CNAME 
pointing to "www.example.net.example.com." The $ORIGIN value is appended 
to the name of every record which is not terminated at the root, i.e., 
has a trailing dot.

> I tried this and it obviously doesn't work (BIND 9.3.1, SUSE Pro 9.2).

Not obvious to us. Try using real names.

> Is there a way to accomplish this? 

$ORIGIN example.com.
www			IN	CNAME	www.example.net.

And do seek out some documentation and dead-trees. _DNS_and_BIND_ is 
highly recommended by many here, although I am not very familiar with 
it, myself.
-- 
     mail to this address is discarded unless "/dev/rob0"
     or "not-spam" is in Subject: header



More information about the bind-users mailing list