HTTP Request to a VirtualHost

811 Views Asked by At

Here's the thing, I have my server configured with a virtualhost mydomain.com but the DNS are not pointing yet to this server's IP address.

In other words, I have:

  • mydomain.com DNS pointing to server A
  • a server B with a mydomain.com virtualhost

I need to connect to server B pretending I'm connecting to mydomain.com.

Is it possible to test that with Paw?

2

There are 2 best solutions below

1
On BEST ANSWER

What you're trying to do is probably DNS spoofing, you need to connect to your "server B"'s IP address but with an HTTP header Host: mydomain.com.

See DNS Spoofing with Paw.

0
On

It took me a while to figure it out, so here's a screenshot that may explain the solution better.

I'm trying to access the virtualhost mydomain.com on the server with IP address 0.0.0.0.

Paw VirtualHost