Redirect local DNS query to remote DNS server on non standard port?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Redirect local DNS query to remote DNS server on non standard port?
The issue is that my CentOS workstation is in a vlan from where the Intranet's DNS servers are unreachable.
For browsing the web there is an ISA proxy server, which I presume resolves DNS for my firefox. However, wget, host, ping and aria2c fail to get any sort of DNS resolution since they're being run from command line.
I have exported HTTP_PROXY value, which provides me internet access on console, but,only when I connect using IP address. It fails on name resolution.
--
My question is:
May I redirect the DNS queries to my home PC which would be running a DNS server on a non standard port?
I was thinking of putting
nameserver 127.0.0.1 in /etc/resolv.conf
and then put iptables rule to redirect 127.0.0.1:53 UDP to a.public.ip.address:3535 UDP
I don't know if I am shooting blanks or what, I am not very much aware of this kind of setup.
--
My main need is to provide DNS resolution to console apps.
I want to utilize my company's idle bandwidth for bulk downloads, so, using proxy, SSH tunneling through my Home PC is out of question.
Any ideas that I can read upon?
Last edited by rock_ya_baby; 02-19-2010 at 01:21 PM.
why hack iptables rules? why use unstandard port for DNS? It is not meant to be installed on other port than 53, like some other standard internet services. i think a better solution will be configure iptables on your home pc allowing only your company external IP/subnet to interact with your port 53. isn't that a good idea?
Oh... then the only idea I have here is to use a tool like openvpn or something.
Out of other ideas.
Interesting question.
It better fits in "Networking" forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.