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

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



Thank you very much!

Acquire::EnableSrvRecords "false" is the solution for me.

Cheers


On 06.02.2018 14:29, Julian Andres Klode wrote:
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.



--
Bogdan Veringioiu

Amano Parking Europe N.V.
Uersfeld 24
52072 Aachen, Germany

e-mail:   bogdan.veringioiu@amano.eu
web:      www.amano.eu


Reply to: