URL instead of IP address as A Record

Michael Voight mvoight at cisco.com
Wed Jun 16 19:15:28 UTC 1999



Andi Twine wrote:
> 
> Hi again !
> 
> Does anyone know how to have an absolute URL in a zone file as an A Record,
> instead of just an IP address ?
> 
> I have registered a domain where I want to be able to point the subdomains
> straight to a URL as a forwarding address.
> 
> I wondered if I could modify the zone file to something like this :
> 
> mr-andi.domain.com      IN      A       http://www.mr-andi.com

You have to have an address in the A record.

> 
> Or, if that doesn't work, is there anything else I could do in Bind ?

Can you be a bit more clear on what you are trying to accomplish?

If you want someone pointing at mr-andi.domain.com to go to
www.mr-andi.com, you  can simply make it point to the address of
www.mr-andi.com

like:

www.mr-andi.com.  in  a 1.1.1.1
mr-andi.domain.com. in cname www.mr-andi.com.

or 

mr-andi.domain.com. in a 1.1.1.1
www.mr-andi.com. in cname mr-andi.com.

or 

www.mr-andi.com.  in  a 1.1.1.1
mr-andi.domain.com. in a 1.1.1.1

It depends on what you are trying to do.

Michael



More information about the bind-users mailing list