DNS Settings

Tim Frost timfrost at xtra.co.nz
Mon Feb 20 06:25:41 UTC 2006


On Mon, 2006-02-20 at 08:58 +0300, str tux wrote:
> Hello People,
> 
> In my DNS setting I added A record of www for our company website.
I assume you mean 'the zone file' when you refer to 'DNS settings'
> 
> It works, when you go to http://www.mycompany.com; it resolves and it
> shows the website content.
> 
> 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.

Add an A record to your DNS, at the beginning of the zone, with the IP
address of the web server.  The start of the file should look like:

company.com.   SOA .........
               NS  .........
               A   <web.server.ip.address>
(there should be an NS record for each of the nameservers)


NOTE:  The web server needs to be reconfigured to know that
http://company.com/ is the same site as http://www.company.com/


> 
> How to do it? Thanks in advance.
> 
> S.Tux
> 

Tim





More information about the ubuntu-users mailing list