owa and main website conflict

Dear All,
I am facing a wired problem. i have a domain name "mydom.com" registered on domain.com.

I created correctly my MX, A and CNAME records but it still doesn't work.
Then i read on the support page  that you must change your  Name Server NS record to be:

The original NS record:

So i changed the value of the NS records and everything just worked fine.

I was receiving mails and OWA was ok.

after 10 min i just lost the company website that is hosted also on domain.com

the website is: www.mydom.com
owa is:             mail.mydom.com

and if i change the NS records bace to NS1.DOMAIN.COM
the website just work fine but i lose owa and the MX record.

if i mix both ns record like that:

things will go crazy. owa and the MX records somtimes work sometimes not, same thing for the website.

i think this is depending on witch NS server is replying.

anyone solution or idea?

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.

Why were you changing the name servers?
The name server change would have nothing to do with the operation of OWA etc, but if the DNS records were not the same on both sets of name servers then that could mean name resolution fails to point to the correct location.

This would appear to be a DNS issue, nothing to do with Exchange or IIS.

You have only registrar (place where your DNS records are). There are servers that are responsibile for your domain. That means that only they can broadcast (not technicaly speaking) which IP point to your www and owa server. If this is one server that hosts your web page AND your OWA - than you should have A names for www.yourdomain.com nad owa.yourdomain.com. If server that runs OWA also accepts mail, than it should have also MX and SFP record in that DNS server.

You shold know that DSN records have TTL usualy 1day. That means that it will take up to one day to refresh changes that you made just now. And then it also could take another day for other DNS servers around the globe to update record.

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
e3userAuthor Commented:
thanks zoubi77, i think that ns1.domain.com holds my www.mydom.com and the ns1.nameresolve.com holds my owa. thats is why when i put them both sometimes i can't connect to both websites in the same time.
i will ask the people who hosted  my website if they can register it on the ns1.nameresolve.com so both websites will be on same name server, i think this will solve the issue.
i will keep u update it.
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
Email Protocols

From novice to tech pro — start learning today.