Jump to content
Sign in to follow this  

emulate host file change

Recommended Posts


I'd like to write a tool to test virtual host configurations without changing the host file.

Is ist possible to simulate the nameresolution to a virtual host <-> IPadress with autoit?

For example:

I've set up a domain as virtual host on my server. test.domain.com

My server has the ipadress (for example).

Now I want to send a request to the apache webserver and see the content of the virtual host. test.domain.com

It is possible to perform this test by changing the local host file.

So it might be possible to "fake" the request with a script.

Share this post

Link to post
Share on other sites

You might be able to manually add an entry to the dns cache somehow, this way it will only resolve until the cache is cleared.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.