Jump to content

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 10.0.0.3 (for example).

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

10.0.0.3 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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...