Question

Testing site Before DNS propagation

Posted November 30, 2013 10.4k views
Hello! I have just created a droplet on ubuntu, then instaled zpanel. The problem is taht when i try to access the zpanel interface in my web browser with the subdomain set by zpanel (zpanel.domain.com) it shows nothing, probably because there's no DNS pointing to it, am i right? I want to do some tests in a temporary domain, to put all my site files and test everything, to only then change the DNS. How do i do that? How to use Zpanel to do my tests before propagating DNS?

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.

×
7 answers
You can edit /etc/hosts locally in order to test zPanel before updating the DNS records.
http://en.wikipedia.org/wiki/Hosts_(file)#Location_in_the_file_system
there is host file on most oses, if you dont use linux localy
sorry, i'm totally new with all those stuff, the experience i had was shared hosting with cpanel, and now im learning all this new stuff..

What do i do with the hosts file? put on my droplet IP?
You need to insert a new line in the hosts file that looks like this:

192.168.0.12 example.org www.example.org

The first part is the droplet IP and the following text should be your domain name. You can insert as many domains as you want, just separate them with a space.
Nice David!!

Actually i got to access zpanel only by typing my droplet IP in web browser. My server hosts file remain untouched, with 3 lines like 120.0.0.1 domain.com, 120.0.0.1 autoreply zpanel.domain.com, 120.0.0.1 zpanel.domain.com

Is it alright? I'm wondering if i'll have to change those lines or remove them qhen i point the real domain DNS..
That is alright, however if you want to test your websites I believe you will have to browse to the website itself i.e. it won't load if you simply browse to your IP, you will have to browse to the website itself. Therefore, in order to be able to do that without affects other visitors/users, you will have to edit the DNS record manually by editing the hosts file.
You could use your server's IP until the DNS sorts itself out.
Submit an Answer