[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt ignoring nsswitch.conf order for host names resolution



On Tue, Feb 06, 2018 at 01:27:55PM +0100, Bogdan Veringioiu wrote:
> Hello all,
> 
> +++ Problem:
> 
> apt is always querying the dns server for name resolution when doing
> "apt-get update" regardless of the content of /etc/nsswitch.conf. The dns
> server is not connected to internet and this is causing the apt to wait ~20
> seconds for dns to timeout. This should not happen, becuase the apt
> repository host (bootserv) is defined in /etc/hosts.

Only bootserv is defined in hosts, but APT also queries SRV records for
_http._tcp.bootserv. I suggest you configure your machines to not point
to unavailable DNS servers or something, or set Acquire::EnableSrvRecords
to false.


-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: