Resolving names: DNS Forward over /etc/hosts priority?
Hello all.
Through the lasts days I've trying to solve this "problem" without success yet. In my network my proxy / firewall (iptables + squid) works as dns forwarder. I needed to configure an url at my /etc/hosts in my linux boxes which are behind the firewall into the lan. I want my machine to look at its local /etc/hosts file before querying the dns to the firewall. Despite I configured my /etc/host.conf this way: /etc/host.conf: multi on order hosts,bind And the /etc/hosts: pub.lic.ip.add my.url.com.ar (where pub.lic.ip.add is the ip address of the web server and "my.url.com.ar" the url). My machine keeps resolving the name through the dns forwarder (firewall) and not from the /etc/hosts file first. Is there any action needed after configuring /etc/host.conf? Any service to restart? Something could be missing? Thanks in advance, Matías |
host.conf is a new one to me.
Try /etc/nsswitch.conf Code:
hosts: files dns |
AlucardZero,
Thanks for your response. I took a glance at my /etc/nsswitch.conf and this entry was already there. Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 Code:
$ping urlinetchost Thanks a lot |
What browser are you using? Firefox? Most browsers have proxy settings. Please check to see if your browser is using it. In firefox it's under tools->options->advanced->network->settings. In case it is using proxy settings, then everything would route through that.
|
Yes, I'll try bypassing proxy. Must be that.
Thanks! Quote:
|
All times are GMT -5. The time now is 03:50 PM. |