Testing site Before DNS propagation

November 30, 2013 5.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 ( 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?
7 Answers
You can edit /etc/hosts locally in order to test zPanel before updating the DNS records.
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:

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, autoreply,

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.
Have another answer? Share your knowledge.