I am using Debian Trixie on a server. I have installed it using ZFSBootMenu documentation, without a desktop environment. The installation is quite minimal in term of packages.
My motherboard has 2 ethernet interfaces.
My hostname is configured correctly (I think, I have done systemctl set-hostname servername).
/etc/hosts:
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.0.1 servername /etc/hostname:
servername /etc/network/interfaces:
auto lo iface lo inet loopback auto eno1 iface eno1 inet dhcp hostname servername auto eno2 iface eno2 inet dhcp hostname servername /etc/dhcpcd.conf:
# was: hostname hostname servername # was: duid clientid persistent vendorclassid option domain_name_servers, domain_name, domain_search option classless_static_routes option interface_mtu option host_name require dhcp_server_identifier slaac private extract from /etc/nsswitch.conf:
# hosts: files mdns4_minimal [NOTFOUND=return] dns # stock Debian conf hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4 netgroup: nis find /usr/lib -iname '*libnss*':
/usr/lib/x86_64-linux-gnu/libnss_mdns.so.2 /usr/lib/x86_64-linux-gnu/libnss_mdns6.so.2 /usr/lib/x86_64-linux-gnu/libnss_compat.so /usr/lib/x86_64-linux-gnu/libnss_mdns_minimal.so.2 /usr/lib/x86_64-linux-gnu/libnss_files.so.2 /usr/lib/x86_64-linux-gnu/libnss_compat.so.2 /usr/lib/x86_64-linux-gnu/libnss_hesiod.so.2 /usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 /usr/lib/x86_64-linux-gnu/libnss_hesiod.so /usr/lib/x86_64-linux-gnu/libnss_dns.so.2 /usr/lib/x86_64-linux-gnu/libnss_mdns6_minimal.so.2 /usr/lib/x86_64-linux-gnu/libnss_mdns4.so.2 extract from systemctl status:
│ ├─networking.service │ │ ├─1010 "dhcpcd: eno1 [ip4] [ip6]" │ │ ├─1011 "dhcpcd: [privileged proxy] eno1 [ip4] [ip6]" │ │ ├─1013 "dhcpcd: [network proxy] eno1 [ip4] [ip6]" │ │ ├─1016 "dhcpcd: [control proxy] eno1 [ip4] [ip6]" │ │ ├─1093 "dhcpcd: [DHCP6 proxy] fe80::redacted" │ │ ├─1094 "dhcpcd: [BPF ARP] eno1 192.168.1.82" │ │ ├─1110 "dhcpcd: [DHCP6 proxy] 2a01:redacted" │ │ ├─1122 "dhcpcd: eno2 [ip4] [ip6]" │ │ ├─1123 "dhcpcd: [privileged proxy] eno2 [ip4] [ip6]" │ │ ├─1124 "dhcpcd: [network proxy] eno2 [ip4] [ip6]" │ │ ├─1125 "dhcpcd: [control proxy] eno2 [ip4] [ip6]" │ │ └─1163 "dhcpcd: [BOOTP proxy] 192.168.1.82" extract from ip addr:
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether ac:redacted brd ff:ff:ff:ff:ff:ff altname enp2s0 altname enxac1f6bd3405a inet 192.168.1.82/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1 valid_lft 40861sec preferred_lft 35461sec inet6 2a01:redacted/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 86377sec preferred_lft 86377sec inet6 fe80::redacted/64 scope link valid_lft forever preferred_lft forever extract from journalctl -u networking.service:
servername dhcpcd[1117]: eno1: carrier acquired servername dhcpcd[1117]: DUID 00:01:00:01:30:5d:c4:58:ac:1f:6b:d3:40:5b servername dhcpcd[1117]: eno1: IAID 6b:d3:40:5b servername dhcpcd[1117]: eno1: adding address fe80::redacted servername dhcpcd[1117]: eno1: soliciting a DHCP lease servername dhcpcd[1117]: eno1: soliciting an IPv6 router servername dhcpcd[1117]: eno1: probing for an IPv4LL address servername dhcpcd[1117]: eno1: carrier lost servername dhcpcd[1117]: eno1: deleting address fe80::redacted servername dhcpcd[1117]: eno1: carrier acquired servername dhcpcd[1117]: eno1: IAID 6b:d3:40:5b servername dhcpcd[1117]: eno1: adding address fe80::redacted servername dhcpcd[1117]: eno1: soliciting a DHCP lease servername dhcpcd[1117]: eno1: offered 192.168.1.126 from 192.168.1.254 servername dhcpcd[1117]: eno1: soliciting an IPv6 router servername dhcpcd[1117]: eno1: probing address 192.168.1.126/24 servername dhcpcd[1117]: eno1: leased 192.168.1.126 for 43200 seconds servername dhcpcd[1117]: eno1: adding route to 192.168.1.0/24 servername dhcpcd[1117]: eno1: adding default route via 192.168.1.254 servername dhcpcd[1117]: eno1: Router Advertisement from fe80::redacted servername dhcpcd[1117]: eno1: adding address 2a01:redacted servername dhcpcd[1117]: eno1: adding route to 2a01:redacted servername dhcpcd[1117]: eno1: adding default route via fe80::redacted The system is using the DHCP client dhcpcd. My router is a Freebox.
The system gets an IP address from the router but reverse DNS does not work:
nmap -sP -T4 192.168.1.0/24 gives:
Starting Nmap 7.93 ( https://nmap.org ) at 2025-09-17 13:58 CEST Nmap scan report for laptop (192.168.1.16) <--- this is my laptop: name is shown Host is up (0.00095s latency). Nmap scan report for 192.168.1.82 <--- this is my server: no name shown Host is up (0.0026s latency). Nmap scan report for _gateway (192.168.1.254) <--- this is my router / DHCP server Host is marsup (0.0039s latency). Nmap done: 256 IP addresses (3 hosts up) scanned in 2.93 seconds ping laptop does work, ping servername does not work (Name or service not known).
dig -x 192.168.1.82 from my laptop:
; <<>> DiG 9.18.33-1~deb12u2-Debian <<>> 192.168.1.82 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 53842 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;192.168.1.82. IN A ;; AUTHORITY SECTION: . 486 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2025091801 1800 900 604800 86400 ;; Query time: 112 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP) ;; WHEN: Thu Sep 18 21:07:31 CEST 2025 ;; MSG SIZE rcvd: 116 I have installed avahi and avahi works (ping servername.local works) but reverse DNS still does not work. I have tried to specify the hostname in /etc/dhcpcd.conf, changed from duid to clientid, delete leases, rebooted, but no improvement.
I would like to get dhcpcd to work because it is the default one that came when I installed Debian Trixie. I think the Raspberry pi official Linux also use (used?) dhcpcd and has reverse DNS working, so this should be possible.
/etc/dhcpcd.conflook like atm? Also assuming that you restarteddhcpcdafter the changes ... ?/etc/dhcpcd.confWhen testing I was running/etc/init.d/networking restartthat I assumed restarteddhcpcdbut maybe I was wrong. Anyway I tried to reboot between some tests.ifupdown).hosts:line of your/etc/nsswitch.conffile? And what is the output ofls -l /usr/lib/*/libnss_*? Are you planning on mDNS-based reverse DNS resolution, or are you expecting regular reverse DNS to have your hostname? If the latter, make sure thebind9-dnsutilspackage is installed and rundig -x 192.168.1.82and show us what it reports, please.