[Nottingham] Odd name resolution thing

Roger Light roger at atchoo.org
Fri Jan 3 17:58:33 UTC 2014


I think mdns is well implemented and used in Macs. Probably more so than
anywhere else.

Shame it isn't better used in Linux as well.

Cheers,

Roger
On Jan 3, 2014 5:05 PM, "Martin" <martin at ml1.co.uk> wrote:

> On 03/01/14 16:42, Jason Irwin wrote:
> > I have a router running DNSMasq and that's tied in with the DHCP. As far
> > as I can tell, this works ("ping", "dig" and "host" for "foo" and
> > "foo.bar.local" all work).
> >
> > Some thing's don't, e.g. "ssh" and "wget" both fail with "Unable to
> > resolve host" for "foo.bar.local" ("foo" works fine).
> >
> > I can fix that by changing "/etc/nsswitch.conf" from:
> > hosts:          files mdns4_minimal [NOTFOUND=return] *dns* mdns4
> >
> > to:
> > hosts:          files *dns* mdns4_minimal [NOTFOUND=return] mdns4
> >
> > Before I go and replicate this change on other machines, is this
> > sensible to do? I don't expect people to actually use "foo.bar.local"
> > but it'd be nice if it worked. I'm just thrown why Canonical ship a
> > config that seems to bypass DNS and assume I must be missing something.
>
> All is explained on:
>
> http://ubuntuforums.org/showthread.php?t=971693&p=12589927#post12589927
>
> The "[NOTFOUND=return]" avoids polluting the internet with useless
> requests for local machines.
>
> However... If you are running your own DNS locally for serving your
> local lan for yourself, then you will indeed want your local DNS to be hit.
>
>
> I just use:
>
> hosts:          files dns
>
> being as I run my own DNS service for my lan. All internet DNS is
> blocked by a gateway firewall.
>
> You may well need to include the "mdns" stuff if you're suffering the
> Windows world and/or VPNs...
>
>
> Have fun!
> Martin
>
>
> --
> - ------------------ - ----------------------------------------
> -    Martin Lomas    - OpenPGP (GPG/PGP) Public Key: 0xCEE1D3B7
> - martin @ ml1 co uk - Import from   hkp://subkeys.pgp.net   or
> - ------------------ - http:// ml1 .co .uk/martin_ml1_co_uk.gpg
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20140103/fbd9fdfa/attachment.html>


More information about the Nottingham mailing list