Report this

What is the reason for this report?

Modify Local DNS/DNS Spoof? How Best to Test Site Before Going Live?

Posted on January 12, 2017

I am moving from other hosting to Digital Ocean. I believe I’ve set everything up properly so I just need to change my A record for the domains and everything should be up and running. The issue is that I’d really like to test this! I’m on a Windows machine so I modified the hosts file. The issue is that since I’m using Wordpress it appears as though they rewrite the URL to add www. in front which is querying for the real address. Is there a workaround that people use to test things such as this? Thank you!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@gwenivinsdesign

You can modify your hosts file to account for both access points on the domain.

PUBLIC_IP    yourdomain.com www.yourdomain.com

You can go even further and use sub-domains as well, as long as they point to the same IP, else you’d need to create a second entry.

PUBLIC_IP    yourdomain.com www.yourdomain.com test.yourdomain.com test2.yourdomain.com

Hello, I am moving my domain from Digital Ocean to other provider. What is the process for directing the dns to the new provider? Alguien puede ayudarme ?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.