LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Richard Russell <richard@yellowgoanna.com>
To : Mark Newton <newton@atdot.dotat.org>
Date: Wed, 30 Apr 2003 15:23:55 +0930
Re: Apache reverse proxy -- why does this even work?
Mark Newton writes:
<snip>
> It'll look at the local nameserver if you specify no nameserver at all.
I assume this refers to 127.0.0.1:53, right? Mine is running on an internal
ethernet interface, 192.168.x.y...
>
> This really isn't "a very grey area"; The resolver is very well documented
> with a lot of history behind it. It either uses the nameservers you've
> told it to use (and -only- the nameservers you've told it to use) or there's
> a bug.
Hmm... a bug, hey ... It's RedHat 6.2, so it's quite old... possible...
> (You might want to check environment variables, though: most of the
> stuff in /etc/resolv.conf can be overridden by the process' environment)
OK, I've looked at /etc/init.d/httpd... I've checked /proc/<pid>/environ ...
nothing.
Is it possible that when it started, it loaded /etc/resolv.conf into memory,
and since then, this local nameserver (which isn't 127.0.0.1, by the way --
it's the internal interface, 192.168.x.y) was commented out of
/etc/resolv.conf, but the process still has it cached somehow?
Also, I found /etc/host.conf, referred to in the resolver(3) man page. Its
contents are:
----
order hosts,bind
multi on
----
There is no man page for it. Anyone know if that could be affecting
anything?
Cheers
rr
--
Richard Russell
Yellow Goanna P/L
m: +61 412 827 805
e: richard@yellowgoanna.com
w: http://www.yellowgoanna.com/
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page