[root@MYPC etc]# lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description:    Fedora release 14 (Laughlin)
Release:    14
Codename:   Laughlin

[root@MYPC etc]# uname -a
Linux MYPC #1 SMP Mon Feb 7 06:57:55 UTC 2011 i686 i686 i386 GNU/Linux

[root@MYPC etc]# cat /etc/resolv.conf
# Generated by NetworkManager

[root@MYPC etc]# cat /etc/host.conf 
multi on
order hosts,bind

[root@MYPC etc]# cat /etc/hosts MYPC    # Added by NetworkManager   localhost.localdomain   localhost
::1 MYPC    localhost6.localdomain6 localhost6   audit.median.hu

[root@MYPC etc]# ping audit.median.hu
Do you want to ping broadcast? Then -b

[root@MYPC etc]# host -t a audit.median.hu
audit.median.hu has address
audit.median.hu has address
audit.median.hu has address
audit.median.hu has address

Why does ping see audit.median.hu as, and why does host -t a audit.median.hu see it as audit.median.hu is just an example site [hosts ads, etc.]

I just have a caching nameserver on my Fedora PC:

yum -y install caching-nameserver
service named restart
chkconfig named on

I configured my DNS server addresses in the Network-Manager Applet:,

Even with Wireshark, I can see it:

` DNS Standard query A audit.median.hu`

So the big question: Why don't the host command or my web browser recognize that I have modified audit.median.hus IP address?


In /etc/nsswitch.conf do you have

hosts:      files dns


  • pastebin.mozilla.org/1125975 – LanceBaynes Mar 4 '11 at 11:52
  • Might be being silly but I'm not sure whether host actually abides by nsswitch.conf... could you try using 'ping' or closing/reopening the browser and trying again? – Pricey Mar 4 '11 at 11:55
  • After running strace on host on my Ubuntu 10.10 box I can see no reference to either /etc/host.conf, /etc/nsswitch.conf or libnss. My guess is it doesn't use them. (I could delve into the source code if you like). – Majenko Mar 4 '11 at 15:06
  • what about ping/your browser after restarting? – Pricey Mar 4 '11 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.