404 Error when we don't add www in the address bar

I have a domain name that is pointing to a web host that we don't have much control over. Meaning no ftp access or cpanel type of access.

I notice this mostly in Chrome. Is there a zone record I should add so that it does not matter if you type www or leave it out?
cnl83Asked:
Who is Participating?
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.

Jason C. LevineNo oneCommented:
You should have two A records.  One for www and one that is blank.  That handles www.domain.com and domain.com URLs
1
Julian HansenCommented:
First

ping the www domain and the non-www domain - do they have the same IP - if no then it is a DNS problem.
If yes then it is server configuration problem.
If your webserver is configured to look for the domain name with the www (rather than say an explicit www or a wildcard) then it will return the 404 because when it sees the domain in the request header without the www prefix it won't be able to to find a virtual host to match it to
0
DrDave242Commented:
You don't have an Active Directory domain with the same name as that public domain, do you?
0
ON-DEMAND: 10 Easy Ways to Lose a Password

Learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees in this on-demand webinar. We cover the importance of multi-factor authentication and how these solutions can better protect your business!

cnl83Author Commented:
This domain is managed in a cpanel environment and unrelated to AD.

I have an A record "@" that points to the site ip address.
I have a cname record "www" that points to "mydomain.com".

I tried to add a Cname without the www, but it was denied.
0
Jason C. LevineNo oneCommented:
Can't do a CNAME without a value.  That's what A records are for.
0
cnl83Author Commented:
So how should the A record look?
0
Jason C. LevineNo oneCommented:
Two records.  One has www. and the other is blank.  Both point to the IP address for the site.
0
cnl83Author Commented:
I get name is required. Host record field is required.
0
cnl83Author Commented:
should I try *?
0
DrDave242Commented:
Try @ rather than *.
0
Jason C. LevineNo oneCommented:
You need to talk to your registrar.  Something is not right.
0
cnl83Author Commented:
There is already an @
0
DrDave242Commented:
Ah, I see where you mentioned that now - sorry. If the @ record points to the correct address, the issue isn't in DNS and is likely what Julian Hansen mentioned above: the web server is only configured to process requests for www.mydomain.com and not simply mydomain.com. If you don't have direct control over it, the only option I can think of is to try to contact the person who does control it and ask them to add a host header for mydomain.com to the site. Or simply inform users that they have to include www in the URL.
0

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
DNS

From novice to tech pro — start learning today.

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.