Skip to content

balena-io-examples/balena-avahi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mDNS/.local resolution with Avahi within a container

This example project demonstrates how to install Avahi and nss-mdns in order to resolve *.local hostnames via mDNS within a container.

The motivation behind this example project is that while it is already possible to resolve *.local hostnames from within this balena host OS, currently it is not possible to do that within a container without installing a separate mDNS resolver there.

The part with setting up systemd is taken directly from the Balena Services Masterclass. On top of that the only necessary step is to install Avahi and nss-mdns.

Note: While systemd-resolved provides .local resolution capabilities as well, we recommend using Avahi. The reason is that systemd-resolved depends on systemd-networkd or NetworkManager for its configuration, while Avahi can be used in standalone mode.

About

mDNS/.local resolution with Avahi within a container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages