My problem: Need DNS to be resolved through my remote machine while also using it as a proxy.
So I have a REMOTE that I can access from LOCAL via SERVER. This REMOTE can access a host TARGET_HOST. TARGET_HOST is setup in REMOTE's host file like so: 22.214.171.124 TARGET_HOST
I want to be able to access (in the browser & my application) TARGET_HOST from LOCAL. I have setup a 'proxy' like so:
LOCAL to SERVER:
ssh -L 4567:LOCAL:4568 user@SERVER
SERVER to REMOTE:
ssh -D 4568 user@REMOTE
LOCAL's network config is setup to use a proxy on localhost through port 4567.
So, everything is great and I can see TARGET_HOST in my browser. The problem I have is that the DNS doesn't resolve from LOCAL and therefore some code I have going on in my application, fails. Can anyone help me? Can anyone suggest a better method?