<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm having some trouble the resolved as a multicast DNS responder in early boot. I'm trying to setup a headless system with full disk encryption, and I need to connect remotely (currently using tinyssh) to unlock sysroot and other volumes before the boot continues. I use networkd to setup the dhcp interface, which works fine. The problem is that resolved won't use the value in /etc/hostname, and I can't find a resolved or networkd option to specify a hostname. I double-checked to ensure that the hostname file is correctly being included in the initramfs image, and it is. The multicast DNS responder does work, but only for the fallback hostname set during compilation: -Dfallback-hostname=archlinux for my test system. </div><div><br></div><div>Once the volumes are unlocked, and the system boots, resolved starts using the correct value. The only thing that stands out is that I don't have dbus running in the initramfs. (I was originally planning to use avahi, but didn't want to compile a specific no-dbus binary along with a couple other things, or the extra complexity of setting up dbus to run in the initramfs. I turned to resolved because it was a single config line change to the network unit.)</div><div><br></div><div>Here's some command excerpts from the initramfs:</div><div><br></div><div>=> cat /etc/hostname <br>testvm</div><div><br></div><div>=> grep -v '^#\|^$' /etc/systemd/network/initrd-network.network<br>[Match]<br>Name=eth*<br>[Network]<br>DHCP=yes<br>MulticastDNS=true<br>[DHCP]<br>UseHostname=true</div><div><br></div><div>=> journalctl -u systemd-resolved.service<br>Apr 29 05:53:25 testvm systemd-resolved[109]: Positive Trust Anchors:<br>Apr 29 05:53:25 testvm systemd-resolved[109]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d<br>Apr 29 05:53:25 testvm systemd-resolved[109]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa <a href="http://23.172.in-addr.ar">23.172.in-addr.ar</a>><br>Apr 29 05:53:25 testvm systemd-resolved[109]: Defaulting to hostname 'archlinux'.</div><div><br></div><div>=> systemd-resolve --status<br>sd_bus_open_system: No such file or directory</div><div><br></div><div>I can connect to this system with `ssh root@archlinux.local` but not the expected `ssh root@testvm.local`. <br></div><div><br></div><div>Thanks,</div><div>Justin<br></div></div>