DNS Settings
Karl Auer
kauer at biplane.com.au
Mon Feb 20 06:18:12 UTC 2006
On Mon, 2006-02-20 at 08:58 +0300, str tux wrote:
> But in addition, I want also some kind of redirection or mapping (i
> don't know what you called that) that when people go to
> http://mycompany.com (without www), it should forward also to the www
> server.
>
> How to do it? Thanks in advance.
Assuming the zone is mycompany.com, add another A record like this:
mycompany.com. 12345 IN A 1.2.3.4
where 12345 is the TTL you want, and 1.2.3.4 is the address of your web
server. Then (optionally) remove the other A record and make it an alias
(CNAME), so that if your webserver address changes, you only have to
update one A record:
www 12345 IN CNAME mycompany.com.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au) +61-2-64957160 (w/h)
http://www.biplane.com.au/~kauer/ +61-428-957160 (mob)
More information about the ubuntu-users
mailing list