On Fri, Apr 12, 2019 at 12:53:28PM +0200, Jeremie Courreges-Anglas wrote: > On Thu, Apr 11 2019, Solene Rapenne <[email protected]> wrote: > > Hi > > > The asr resolver in libc defaults to "lookup bind file" so DNS is hit > before /etc/hosts. I have "lookup file bind" in resolv.conf{,.tail}. >
Interesting, I would have think the default order to be "file bind" About this "issue", someone pointed out to me on IRC this link https://github.com/MidnightCommander/mc/blob/91a428db5cc5a063bde923c94bf9f7a0a80675ab/doc/FAQ#L701 There is a special case when mc detects /etc/samba/smb.conf and will try to resolves the hostname only in this case. I had that file, I renamed it and mc did not try to resolve my hostname.
