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

Bug#1021455: nscd: nscd returns bizarre DNS responses



Package: nscd
Version: 2.35-2
Severity: important
X-Debbugs-Cc: Vagrant Cascadian <vagrant@debian.org>

I was unable to "dgit push-source" after upgrading nscd from 2.35-1
earlier today. Had no such problems just two days ago. Investigating a
little further, it just kept getting weirder.

  $ host push.dgit.debian.org
  push.dgit.debian.org is an alias for gideon.debian.org.
  gideon.debian.org has address 82.195.75.78
  gideon.debian.org has IPv6 address 2001:41b8:202:deb::311:78
  gideon.debian.org mail is handled by 10 mitropoulos.debian.org.
  gideon.debian.org mail is handled by 10 muffat.debian.org.
  gideon.debian.org mail is handled by 10 mailly.debian.org.

That seems reasonable.

  $ ping push.dgit.debian.org
  PING deon.debian.org (127.0.1.1) 56(84) bytes of data.
  64 bytes from REDACTED (127.0.1.1): icmp_seq=1 ttl=64 time=0.079 ms
  64 bytes from REDACTED (127.0.1.1): icmp_seq=2 ttl=64 time=0.136 ms
  64 bytes from REDACTED (127.0.1.1): icmp_seq=3 ttl=64 time=0.136 ms
  ^C
  --- deon.debian.org ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2042ms
  rtt min/avg/max/mdev = 0.079/0.117/0.136/0.026 ms

It's pinging my localhost ip address, but also using a truncated version
of the host name I actually want to ping, "deon.debian.org" instead of
"gideon.debian.org".

And everything works fine when I stop nscd:

  $ sudo systemctl stop nscd
  $ ping push.dgit.debian.org
  PING push.dgit.debian.org(gideon.debian.org (2001:41b8:202:deb::311:78)) 56 data bytes
  64 bytes from gideon.debian.org (2001:41b8:202:deb::311:78): icmp_seq=1 ttl=51 time=165 ms
  64 bytes from gideon.debian.org (2001:41b8:202:deb::311:78): icmp_seq=2 ttl=51 time=165 ms
  64 bytes from gideon.debian.org (2001:41b8:202:deb::311:78): icmp_seq=3 ttl=51 time=165 ms
  ^C
  --- push.dgit.debian.org ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 2004ms
  rtt min/avg/max/mdev = 165.369/165.390/165.429/0.027 ms


As far as I know, I've got the defaults for /etc/hosts,
/etc/nsswitch.conf, and the dns server defined in /etc/resolv.conf
looks correct to me.

  $ cat /etc/hosts
  127.0.0.1       localhost
  127.0.1.1       REDACTED

  # The following lines are desirable for IPv6 capable hosts
  ::1     localhost ip6-localhost ip6-loopback
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters

  $ cat /etc/nsswitch.conf
  # /etc/nsswitch.conf
  #
  # Example configuration of GNU Name Service Switch functionality.
  # If you have the `glibc-doc-reference' and `info' packages installed, try:
  # `info libc "Name Service Switch"' for information about this file.
  
  passwd:         files systemd
  group:          files systemd
  shadow:         files
  gshadow:        files
  
  hosts:          files mdns4_minimal [NOTFOUND=return] dns
  networks:       files
  
  protocols:      db files
  services:       db files
  ethers:         db files
  rpc:            db files
  
  netgroup:       nis

  $ cat /etc/resolv.conf
  # Generated by NetworkManager
  nameserver 10.0.0.1

I did briefly add push.dgit.debian.org to /etc/hosts, but have since
removed it and stopped and started nscd a few times...

live well,
  vagrant

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 6.0.0-rc7-arm64 (SMP w/6 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nscd depends on:
ii  init-system-helpers        1.65.2
ii  libaudit1                  1:3.0.7-1.1
ii  libc6                      2.35-2
ii  libcap2                    1:2.44-1
ii  libselinux1                3.4-1+b2
ii  lsb-base                   11.4
ii  sysvinit-utils [lsb-base]  3.05-6

nscd recommends no packages.

nscd suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature


Reply to: