Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing a virtual host site without updating DNS? Details w/i 1

Status
Not open for further replies.

newyorkny

IS-IT--Management
Jun 30, 2004
189
HK
Ok, Tippers:

Here is what I mean.

I volunteer for a non-prof site currently running on a cpanel virtual host account that is administered by the organization's parent. The guys who administer all the sites decided to move from one cpanel host to another.

They moved all my files but couldn't recreate the MySql database. So, no problem, I went in and created a new database, same user/pass/privs, and ran a sql file which should have slurped my data in.

The new site is also a virtual host, as I guess I have said, and I won't be able to resolve the site until they update DNS. It's one IP/many domains. I expect they use host headers, of course.

Can you think of a way for me to test the site prior to them rolling over DNS? I have absolutely no fallback, since the drop dead date is Thurs, and these guys aren't going to want to play games with DNS for my convenience. I'm a casual user of MySql so it's not beyond the scope of poss. that I may have made some error. Also, I had to edit the config file and that's always touchy. I hope that I won't be seeing "cannot reach mysql database" at the same time visitors do!

Any thoughts?

Thanks!! NY NY
 

You can add the domain name to your workstation hosts file (windows or linux or unix). Your system *should* look here first to identify the IP that corresponds with the name and send the request to the webserver - just as would happen with public dns, just bypassing the public dns servers that have not been updated with your new IP/name.

If you just want to test the mysql database, and it is accessible via a remote connection (usual port etc), then just write a quick script up on your machine (in your language de jour - e.g. javascript, vbscript,python or C#,vb,java) and run a few SQL statements through.

Hope that helps,

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Hmmm...that's an interesting theory. I will see if it will work. Part of it depends on how far the new host server is along on being setup, I would think.

Thanks for your reply. Very clever!

NY
 
Thanks, Damber. I suppose I should have thought of that, but I didn't!!

Cheers!
 

No problem, glad it helped. Good Luck with the transition!

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top