• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1549
  • Last Modified:

allow secondary domain alias website access without www. prefix

We have a domain that we use internally, but as our Company Public name has changed our external website also has a secondary alias which visitors are now encouraged to use.

however we are unable to allow access to this without using the www. prefix.
Our primary domain name allows access externally without www.
however niether domain name website alias can be accessed without www prefix internally..

I believe our external DNS has a www Host (A) record for the primary domain name forward lookup zone, but not for our secondary.


Our internal DNS has a www Host (A) record for the primary domain name forward lookup zone, and a www Alias (CNAME) for our secondary.


We'd like to allow users to access either domain name / alias with our without the www prefix externally and if possible internally too..
0
northtecicts
Asked:
northtecicts
  • 5
  • 3
1 Solution
 
bevhostCommented:
You cannot CNAME a domain name that has any other records.
eg
if domain.com has an NS SOA or MX record (or A or PTR or anything)
you cannot (well should not) make a CNAME record for it.
0
 
northtecictsAuthor Commented:
OK so what would you suggest we do then?
Sorry I'm a bit of a beginner on this - it's just been running as it is for a couple of years since it was originally set up..
0
 
bevhostCommented:
Don't use CNAMES.  Use A records instead.

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
bevhostCommented:
If you web site is on a shared web server then it is most likely that it will need to be configured to recognise each domain name it is serving.
0
 
northtecictsAuthor Commented:
OK thanks bevhost.
I'm just awaiting change control to change this record from CNAME to A Host record.
However I don't see how this will change the fact that we cannot  access to our website without using www prefix on either primary or secondary / alias domain from internal, nor external from our secondary / alias domain..
0
 
bevhostCommented:
Check that when you ping the names that it resolves to the IP address of the web server.

0
 
northtecictsAuthor Commented:
yup..
Pingingwww.primarydomain.com and www.domainalias.com both receive replies from our web server external IP. This is pinging from internal and external.
Pinging our primarydomain.com replies from our DNS server internally and our webserver externally, and our domainalias.com cannot find host.
0
 
bevhostCommented:
So you need an external A record for domainalias.com that points to your web server.

and internal A records for both domains.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now