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..
northtecictsAsked:
Who is Participating?
 
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
 
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
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
bevhostCommented:
Don't use CNAMES.  Use A records instead.

0
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.