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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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..
bevhostCommented:
Don't use CNAMES.  Use A records instead.

Check Out How Miercom Evaluates Wi-Fi Security!

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom on how WatchGuard's Wi-Fi security stacks up against the competition plus a LIVE demo!

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.
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..
bevhostCommented:
Check that when you ping the names that it resolves to the IP address of the web server.

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.
bevhostCommented:
So you need an external A record for domainalias.com that points to your web server.

and internal A records for both domains.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.