|
Home > Archive > 70-216 > September 2003 > DNS domain pointing to specific record
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
DNS domain pointing to specific record
|
|
| druid_ro 2003-09-01, 9:21 am |
| Is there any way to make a domain name, eg : domain.com, to point to a specific record like [www.domain.com].
That is if I enter http]://domain.com the result I need is [www.domain.com]
The website is hosted on a separate server then the name server.
Suppose NS is 192.168.0.1 and www is 192.168.0.2
By default [http]://domain.comsends me to 192.168.0.1. | |
| Tech Ranger 2003-09-07, 3:56 pm |
| How about an alias? | |
|
| If you change your dns record for domain.com to code: domain.com CNAME www.domain.com
, then if you look up domain.com it will do another look up to www.domain.com. This adds an extra querie, but it won't be a big deal. For performance, put code: domain.com A IP.add.res.s
Now that domain.com is really www.domain.com, you need the www.domain.com webserver to serve pages for domain.com, so add a code: ServerAlias domain.com
into your httpd.conf file, or similar if using another webserver.
HTH,
Neil |
|
|
|
|