LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-10-2016, 10:38 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,574
Blog Entries: 4

Rep: Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890Reputation: 3890
(Ubuntu) Apache mod_proxy: how do I know which DNS-server will be queried?


Sounds dumb, but I've got a legacy PHP application that makes heavy use of mod_proxy (as I have discussed here, see "nylo" ...) to allow URLs to appear to be "subdirectories" of a parent store even though the data is actually served by a different <VirtualHost> ... which host the public isn't allowed to reach directly.

(I don't know. Ask the Marketing Department.)

There is a dnsmasq server on the internal network which knows about these addresses, but I'm seeing cases where (Ubuntu) mod_proxy is coming up with DNS-resolution failure. Intuitively, I'd like to tell mod_proxy that it must use this-or-that IP address to find the DNS server that it is to use to resolve these names.

Can this be done? (I can't use /etc/hosts files in this case.)
 
Old 10-17-2016, 11:53 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
DNS servers are listed in the resolv.conf file. You can use your hosts files to add individual hosts and then DNS isn't queried. Just make sure in the nsswitch.conf file that the hosts order uses files first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how often a root dns server is queried tripialos Linux - Newbie 8 03-09-2015 10:28 PM
Choosing DNS server based on domain being queried xtc Linux - Networking 3 10-01-2009 11:21 AM
Apache web server question and mod_proxy swamprat Linux - Software 2 12-25-2008 04:00 PM
DNS getting queried everytime I open a program Zil Linux - Networking 5 03-14-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration