Bug#1057387: openresolv: Garbles nameserver address for no apparent reason

2023-12-04 Thread Daniel Gröber
Control: retitle 1057387 openresolv: Uses stale nameserver info from 
resolv.conf.bak

Hi,

On Mon, Dec 04, 2023 at 11:57:05AM +0100, Daniel Gröber wrote:
> now 2001:678:4d8::1 used to be a valid address for my resolver but
> isn't anymore, but I can't for the life of me figure where openresolv
> would be getting this from?

After remembering strace exists I found it's taking this from
/etc/resolv.conf.bak after deleting this it now "only" overwrites my
resolv.conf with an empty file ...

I have some questions:

  1) Why is .bak being merged into resol.conf? This seems ripe for desaster.

  2) Why overwrite a perfectly good resolv.conf with an empty one?

Thanks,
--Daniel


signature.asc
Description: PGP signature


Bug#1057387: openresolv: Garbles nameserver address for no apparent reason

2023-12-04 Thread Daniel Gröber
Package: openresolv
Version: 3.12.0-3
Severity: important
X-Debbugs-Cc: d...@darkboxed.org

Hi Fabio,

nothing on my system feeds resolvconf any data:

$ find /run/resolvconf/
/run/resolvconf/
/run/resolvconf/metrics
/run/resolvconf/interfaces
/run/resolvconf/interfaces/lo.unbound

(lo.unbound is empty)

yet when I run `resolvconf -u` (which also seems to happen during
system boot) it garbles my hand maintained resolv.conf:

domain clients.dxld.at
nameserver 2001:678:4d8:acdd::1

turns into:

domain clients.dxld.at
nameserver 2001:678:4d8::1

now 2001:678:4d8::1 used to be a valid address for my resolver but
isn't anymore, but I can't for the life of me figure where openresolv
would be getting this from?

Thanks,
--Daniel

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information