Is your feature request related to a problem? Please describe
Using mDNS, a host is typically advertised in the local network as <hostname>.local.
I want the host to be also reachable with <additional_hostname_1>.local and <additional_hostname_2>.local.
This would for instance allow to access different services in a local network running on the same hardware using distinct "qualified domain names" or via (fake) subdomains like <service_1>.<hostname>.local. A particular use case is documented in Using mDNS aliases within your Home Network.
Describe the solution you'd like
A possible location for making such a feature accessible could be hostenamectl.
"Avahi" provides avahi-publish -a <additional_hostname>.local -R <host ip address>.
Note that the -R flag "Do not publish reverse entry with address." is only available in newer versions.
Configuration files analogously to *.dnssd.
Describe alternatives you've considered
Maybe DNS-SD could be used. (Note that avahi-publish differentiates between publishing of services and publishing of adresses.)
systemd-nspawn might provide a similar feature for containerd services.
Maybe this could be achieved atm in some way by assigning additional ip addresses.
The systemd version you checked that didn't have the feature you are asking for
Component
hostnamectl, systemd-hostnamed, systemd-resolved
Is your feature request related to a problem? Please describe
Using mDNS, a host is typically advertised in the local network as
<hostname>.local
. I want the host to be also reachable with<additional_hostname_1>.local
and<additional_hostname_2>.local
.This would for instance allow to access different services in a local network running on the same hardware using distinct "qualified domain names" or via (fake) subdomains like
<service_1>.<hostname>.local
. A particular use case is documented in Using mDNS aliases within your Home Network.Describe the solution you'd like
hostenamectl
.avahi-publish -a <additional_hostname>.local -R <host ip address>
.-R
flag "Do not publish reverse entry with address." is only available in newer versions.*.dnssd
.Describe alternatives you've considered
avahi-publish
differentiates between publishing of services and publishing of adresses.)systemd-nspawn
might provide a similar feature for containerd services.The systemd version you checked that didn't have the feature you are asking for
256