README.md
December 3, 2023 ยท View on GitHub
A small mDNS service that points all subdomains on $HOSTNAME.local to the host's IP.
For this to work you'll need to make sure your system is configured to resolve mDNS hostnames. On Ubuntu this is usually the case when:
avahi-daemonis running,- the
libnss-mdnspackage is installed, mdns4is enabled in your/etc/nsswitch.confinsteadmdns4_minimal, e.g.:
andhosts: files mdns4 [NOTFOUND=return] dns- all
.localdomains are allowed in mDNS. See https://github.com/lathiat/nss-mdns#etcmdnsallow.- for this it is usually sufficient to create
/etc/mdns.allowand/or add:
to it. This will take effect immediately, no service restarts are required..local. .local - for this it is usually sufficient to create
When everything is working you should be able to ping any-domain-you-make-up.$HOSTNAME.local. If that is not the case, then something isn't working.