Package: nis
Version: 4.5
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
After installing NIS on a fresh install on Debian 13 ybbind.service fails
to start during boot. Or after boot using systemctl.
Error message:
jlinkels@donald-pc:/etc$ systemctl status ypbind.service
× ypbind.service - NIS Binding Service
Loaded: loaded (/usr/lib/systemd/system/ypbind.service; enabled; preset:
enabled)
Active: failed (Result: exit-code) since Sat 2026-02-28 17:17:36 AST; 10s
ago
Duration: 14min 19.578s
Invocation: 8c7ee982fbdd4b4a93f1d281574d7bda
Process: 3864 ExecStartPre=/bin/domainname -F /etc/defaultdomain
(code=exited, status=1/FAILURE)
Mem peak: 1.7M
CPU: 9ms
The reason being the file /etc/defaultdomain is not present.
Creating the file /etc/defaultdomain solves the problem.
In earlier debian versions (the last one I tested is Bullseye) this
did not occur.
dkpg-reconfigure does not ask for anything.
Setting kernel.domainname through a script in /etc/sysctl.d
does correctly set /proc/sys/kernel/domainname. But it does not
solve the problem as ybbind.service tries to set the domain name
from the /etc/defaultdomain file
contents of yp.conf:
jlinkels@donald-pc:/etc/sysctl.d$ cat /etc/yp.conf
# ypserver ypserver.network.com
domain nis.lhome server 192.168.110.12
contents of /etc/defaultdomain:
jlinkels@donald-pc:/etc/sysctl.d$ cat /etc/defaultdomain
nis.lhome
-- System Information:
Debian Release: 13.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.73+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages nis depends on:
ii lsb-base 11.6
ii sysvinit-utils [lsb-base] 3.14-4
ii yp-tools 4.2.3-4+b2
ii ypbind-mt 2.7.2-3+b2
ii ypserv 4.2-2+b2
nis recommends no packages.
nis suggests no packages.
-- Configuration Files:
/etc/default/nis changed:
NISSERVER=false
NISCLIENT=true
YPPWDDIR=/etc
YPCHANGEOK=chsh
NISMASTER=
YPSERVARGS=
YPBINDARGS=
YPPASSWDDARGS=
YPXFRDARGS=
-- no debconf information