<p>I think mdns is well implemented and used in Macs. Probably more so than anywhere else.</p>
<p>Shame it isn't better used in Linux as well.</p>
<p>Cheers,</p>
<p>Roger</p>
<div class="gmail_quote">On Jan 3, 2014 5:05 PM, "Martin" <<a href="mailto:martin@ml1.co.uk">martin@ml1.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03/01/14 16:42, Jason Irwin wrote:<br>
> I have a router running DNSMasq and that's tied in with the DHCP. As far<br>
> as I can tell, this works ("ping", "dig" and "host" for "foo" and<br>
> "foo.bar.local" all work).<br>
><br>
> Some thing's don't, e.g. "ssh" and "wget" both fail with "Unable to<br>
> resolve host" for "foo.bar.local" ("foo" works fine).<br>
><br>
> I can fix that by changing "/etc/nsswitch.conf" from:<br>
> hosts:          files mdns4_minimal [NOTFOUND=return] *dns* mdns4<br>
><br>
> to:<br>
> hosts:          files *dns* mdns4_minimal [NOTFOUND=return] mdns4<br>
><br>
> Before I go and replicate this change on other machines, is this<br>
> sensible to do? I don't expect people to actually use "foo.bar.local"<br>
> but it'd be nice if it worked. I'm just thrown why Canonical ship a<br>
> config that seems to bypass DNS and assume I must be missing something.<br>
<br>
All is explained on:<br>
<br>
<a href="http://ubuntuforums.org/showthread.php?t=971693&p=12589927#post12589927" target="_blank">http://ubuntuforums.org/showthread.php?t=971693&p=12589927#post12589927</a><br>
<br>
The "[NOTFOUND=return]" avoids polluting the internet with useless<br>
requests for local machines.<br>
<br>
However... If you are running your own DNS locally for serving your<br>
local lan for yourself, then you will indeed want your local DNS to be hit.<br>
<br>
<br>
I just use:<br>
<br>
hosts:          files dns<br>
<br>
being as I run my own DNS service for my lan. All internet DNS is<br>
blocked by a gateway firewall.<br>
<br>
You may well need to include the "mdns" stuff if you're suffering the<br>
Windows world and/or VPNs...<br>
<br>
<br>
Have fun!<br>
Martin<br>
<br>
<br>
--<br>
- ------------------ - ----------------------------------------<br>
-    Martin Lomas    - OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7<br>
- martin @ ml1 co uk - Import from   hkp://<a href="http://subkeys.pgp.net" target="_blank">subkeys.pgp.net</a>   or<br>
- ------------------ - http:// ml1 .co .uk/martin_ml1_co_uk.gpg<br>
<br>
_______________________________________________<br>
Nottingham mailing list<br>
<a href="mailto:Nottingham@mailman.lug.org.uk">Nottingham@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/nottingham" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/nottingham</a><br>
</blockquote></div>