theYinYeti Posted September 7, 2005 Report Share Posted September 7, 2005 I installed mDNSresponder, along with libnss-mdns, on my fresh install of Debian 3.1. - /etc/hostname : nomade - /etc/nsswitch.conf : hosts: files dns mdns4 - /etc/mDNSresponder.conf : <empty> - `ifconfig` : eth0: 192.168.1.3 - `route` : 192.168.1.XXX -> eth0, default gw 192.168.1.1 -> eth0 - `ps | grep -i mdnsresponder | wc -l` : 3 Network topology: PC[eth0=192.168.1.3]<-->[192.168.1.1]MODEM[2xx.xxx.xxx.xxx]<-->Internet My problem: nomade:~# ping nomade ... (82.xxx.xxx.xxx) ... nomade:~# ping nomade.local ... (82.xxx.xxx.xxx) ... nomade:~# ping nomade.local. ... (82.xxx.xxx.xxx) ... I don't know where this 82.xxx.xxx.xxx IP address comes from, but I would at least expect the 192.168.1.3 address to show up from the third try, if not from the second one. So what's wrong with my config? I need to get this 192... address if I am to be able to ssh/http:... whatever to this box! Yves. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted September 8, 2005 Author Report Share Posted September 8, 2005 /etc/nsswitch.conf : hosts: files dns mdns4<{POST_SNAPBACK}> Solved! I changed this to:/etc/nsswitch.conf : hosts: files mdns4 dns This is normally not the way to do: mdns should be called after dns when dns has failed. This is in part to avoid unnecessary network traffic. Unfortunately here, dns never fails. If I issue "ping qqsdjkfghqs", it will still resolve to 82.101.8.41! So I had to put mdns before dns... I suspect this is because of Club-Internet's (my ISP) "browsing assistant": whenever you type an address that does not exist in a browser, their page appears saying that the address given does not exist and proposing approaching alternatives. The idea is not bad, really. But I wouldn't be surprised if the IP of the machine hosting this page was 82.101.8.41, and in my case it is a pain. Yves. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.