My setup is as following (windows XP). I have an emulator that tries to connect to a specific IP of a DNS server. It basically starts and sends a UDP packet on port 53 on the specified IP (cannot change).
I have then another fake DNS server that listens to a configurable IP and resolves the DNS query. My issue is that practically the only way for it to work is if the emulator tries to connect to the localhost. What I would like is somehow the default gateway to return back to the localhost. Or just route back a specific IP to the localhost.
I tried first "route" command but it cannot route to the localhost. Using virtualbox would theoretically work but it is to heavy just to do what I want.
Any ideas? Purpose is to test without needed another machine.