Page 1 of 1

Previewing websites before DNS propogation?

Posted: Mon Oct 27, 2014 10:07 am
by missionaryman
Can I preview websites using VestaCP before my DNS has propogated? Is there a syntax like:

mainsite.com/~secondsite

or like the Plesk variant: secondsite.com.xx-xx-xx-xx.mainsite.com

Re: Previewing websites before DNS propogation?

Posted: Mon Oct 27, 2014 1:22 pm
by krok

Re: Previewing websites before DNS propogation?

Posted: Mon Nov 03, 2014 12:10 am
by szimre
Hi!

I think the easiest method is to edit your operating systems host file and add the following lines:
"your.server.ip.address <tab> domain.name" like this: "1.1.1.1 example.com"
This way your OS will not query the DNS servers about the domain, instead use the local host file to determine the IP address of the server.

On Windows 7 (not sure if i remember correctly, i'm not using it anymore):
C:/Windows/System32/drivers/etc/hosts

On Macintosh:
/pricate/etc/hosts

There might be a permission issue when saving the edited hosts file, you can find the solution and the whole process in Google.

Re: Previewing websites before DNS propogation?

Posted: Wed Nov 05, 2014 6:48 pm
by geektome
You could just add an alias to their domain with the main site in it like: xxxxxx.mainsite.com. That works for me, however, I have a wildcard setup for subdomain as a record set for my main site so I don't have to add the subdomain each time.