external domain with Plesk

I bought a dedicated server on "CompanyX" and they set up Plesk.
The domain I'm going to use was previously registered on another company. "CompanyOld"
Let's call the domain : domain01.com

I want my domain to be external in "CompanyOld".
I want the email accounts to be in "CompanyOld"

I created the domain on plesk and these are the DNS settings

domain01.com.      NS      ns57.companyOld.com.
domain01.com.      NS      ns58.companyOld.com.
domain01.com.      A      74.###.171.183
mail.domain01.com.      A      74.###.171.183
ns.domain01.com.      A      74.###.171.183
webmail.domain01.com.      A      74.###.171.183
ftp.domain01.com.      CNAME      domain01.com.
www.domain01.com.      CNAME      domain01.com.
domain01.com.      MX (10)      mail.domain01.com.
74.###.171.183 / 24      PTR        domain01.com.
domain01.com.      TXT         v=spf1 +a +mx -all

The IP address 74.###.171.183 is the one of the dedicated server.

The  IP address of the domain is 74.ddd.120.115

It's not working and I don't really know what to do.
Please help!!
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.

If you can post the actual domain name, it would be a lot easier to help you troubleshoot as we could look it up.

What I think is happening here is you have not updated the name servers on the domain itself. You have a master zone record back at the old company, and you have a master zone record in plesk, that is trying to point back to the old company to use it's name servers. But your Plesk zone record is being ignored because the name servers are still pointing to "old company"

You want to update the name servers on your domain to point to your new dedicated machine and change the NS records on your Plesk zone record to match. That way you eliminate the zone records from the old company altogether.
licabalAuthor Commented:
I changed the NS records of the old company.
I put the NS of the new one.

It seems like  kristianranker.com is related to the new server.
But when I put www.kristianranker.com is still showing the old server.
WHOIS on kristianranker.com shows

ns1.kristianranker.com @
ns2.kristianranker.com @

dig @ns1.kristianranker.com. www.kristianranker.com. A

Going to www.kristianranker.com in my browser leads to the proper website at that address.

I think what's happening on your end is your computer or your ISP simply has the old IP address cached in DNS and that's why you aren't seeing it. Your website is actually functioning fine on the new host.

You can try typing ipconfig /flushdns at a command prompt to clear your computer's DNS cache, then restart your browser. Otherwise, in a day or two, you should start seeing the website at it's new home.

I'll make a suggestion for your Plesk DNS zone though, I would make the following changes:

---> domain01.com.      NS      ns57.companyOld.com.
---> domain01.com.      NS      ns58.companyOld.com.

These NS records should actually be ns1.kristianranker.com and ns2 since that is what is in your WHOIS record. You don't want to reference the old company or you'll have the wrong glue.

---> ns.domain01.com.      A      74.###.171.183
 You can remove this record as it is fixed by the above record

---> domain01.com.      A      74.###.171.183
---> www.domain01.com.      CNAME      domain01.com.
---> mail.domain01.com.      A      74.###.171.183
---> webmail.domain01.com.      A      74.###.171.183
---> ftp.domain01.com.      CNAME      domain01.com.
---> domain01.com.      MX (10)      mail.domain01.com.
---> 74.###.171.183 / 24      PTR        domain01.com.
---> domain01.com.      TXT         v=spf1 +a +mx -all
These are all fine (assuming your SPF record is the way you actually want it)

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
licabalAuthor Commented:
I changed the ns records and Everything is working fine!!!

Thank You very much Adraenyse.
Your answers were really helpful.
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
Server Software

From novice to tech pro — start learning today.