Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-19-2010, 02:16 PM
|
#1
|
LQ Newbie
Registered: May 2004
Distribution: Slackware
Posts: 4
Rep:
|
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 02:21 PM.
|
|
|
02-19-2010, 02:58 PM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
It sounds as if you have an http proxy working and what you need is a command line proxy.
You might want to have a look at this article to see if it helps you do that (I haven't done this myself but it looks like it may be what you need):
http://www.aboutdebian.com/proxy.htm
P.S. But iptables exists on other distros so it can probably be adapted fairly easily.
|
|
|
02-20-2010, 12:52 PM
|
#3
|
LQ Newbie
Registered: May 2004
Distribution: Slackware
Posts: 4
Original Poster
Rep:
|
^ I thought I made my query simple
Well, I don't require help in setting up HTTP proxy for command line, that I already have. Please read the post once again.
|
|
0 members found this post helpful.
|
02-20-2010, 01:00 PM
|
#4
|
Member
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Rep:
|
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?
|
|
|
02-21-2010, 12:22 AM
|
#5
|
LQ Newbie
Registered: May 2004
Distribution: Slackware
Posts: 4
Original Poster
Rep:
|
The reason behind running it on different port on my home PC is because outgoing 53 is blocked at my work place.
My requirement is only to resolve DNS using a server which is outside my office network and hopefully running DNS on some other port than 53.
|
|
|
02-21-2010, 07:25 AM
|
#6
|
Member
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Rep:
|
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.
Last edited by Web31337; 02-21-2010 at 07:27 AM.
|
|
|
02-22-2010, 09:31 AM
|
#7
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Quote:
Originally Posted by rock_ya_baby
^ I thought I made my query simple
Well, I don't require help in setting up HTTP proxy for command line, that I already have. Please read the post once again.
|
I didn't suggest an "http" proxy. Maybe YOU should read once again.
Better yet just blow it out your wazoo.
Last edited by MensaWater; 02-22-2010 at 09:49 AM.
|
|
|
04-13-2010, 05:06 AM
|
#8
|
LQ Newbie
Registered: Apr 2010
Posts: 3
Rep:
|
Spam removal.
Last edited by GrapefruiTgirl; 05-07-2010 at 08:37 AM.
Reason: Spam removal.
|
|
|
04-13-2010, 05:31 AM
|
#9
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,209
|
@OP
Quote:
The reason behind running it on different port on my home PC is because outgoing 53 is blocked at my work place.
My requirement is only to resolve DNS using a server which is outside my office network and hopefully running DNS on some other port than 53.
|
You can use forwarders:
Code:
forward only;
forwarders {x.x.x.x port yy;};
|
|
|
All times are GMT -5. The time now is 02:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|