i should set up the following configuration with 2 machines: machine A issues HTTP requests machine B serves the pages requested by A
For testing purposes, i want that EVERY HTTP request issued by machine A gets served by machine B.
For example, machine A browser tries to access www.website.com/article.php?1234
machine B has a folder in its http server that has the content and replies to A.
How can I set up a dns on machine B to point ALL requests to itself?
Thanks
Set up a BIND server on either machine following the settings given in my answer to this question.
Then just make sure that machine A's DNS settings point at that DNS server.
Note (as per @Karol's comment) that this will make all traffic from machine A hit machine B, not just HTTP traffic.