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?
Who is Participating?

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

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. LevineDon't talk to me.Commented:
You should have two A records.  One for www and one that is blank.  That handles www.domain.com and domain.com URLs
Julian HansenCommented:

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
DrDave242Senior Support EngineerCommented:
You don't have an Active Directory domain with the same name as that public domain, do you?
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

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.
Jason C. LevineDon't talk to me.Commented:
Can't do a CNAME without a value.  That's what A records are for.
cnl83Author Commented:
So how should the A record look?
Jason C. LevineDon't talk to me.Commented:
Two records.  One has www. and the other is blank.  Both point to the IP address for the site.
cnl83Author Commented:
I get name is required. Host record field is required.
cnl83Author Commented:
should I try *?
DrDave242Senior Support EngineerCommented:
Try @ rather than *.
Jason C. LevineDon't talk to me.Commented:
You need to talk to your registrar.  Something is not right.
cnl83Author Commented:
There is already an @
DrDave242Senior Support EngineerCommented:
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.

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

From novice to tech pro — start learning today.