# balena-io/balena-mdns-publisher and its base image not available for ARM, making my desired avahi interaction impossible

**URL:** <https://forums.balena.io/t/balena-io-balena-mdns-publisher-and-its-base-image-not-available-for-arm-making-my-desired-avahi-interaction-impossible/126056>\
**Category:** Product support\
**Tags:** support, raspberrypi3, network\
**Created:** [June 4, 2020, 1:21pm UTC](https://forums.balena.io/t/balena-io-balena-mdns-publisher-and-its-base-image-not-available-for-arm-making-my-desired-avahi-interaction-impossible/126056 "2020-06-04T13:21:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewcroughan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/matthewcroughan/32/9424_2.png) [@matthewcroughan](https://forums.balena.io/u/matthewcroughan)\
**Post date:** [June 4, 2020, 1:21pm UTC](https://forums.balena.io/t/balena-io-balena-mdns-publisher-and-its-base-image-not-available-for-arm-making-my-desired-avahi-interaction-impossible/126056/1 "2020-06-04T13:21:50Z")

</div>

> **[GitHub - balena-io/balena-mdns-publisher: MDNS address publisher for balena...](https://github.com/balena-io/balena-mdns-publisher)**
>
> MDNS address publisher for balena services. Contribute to balena-io/balena-mdns-publisher development by creating an account on GitHub.

As far as I can tell, this is the only way to accomplish what I want. But it is not available for ARM, maybe I’m missing something?

What I want are 5 services in a multicontainer project. They will have 5 different hostnames that are pingable on the local network, hopefully this is accomplished via interacting with Balena’s host avahi via DBUS.

app1.local, app2.local, app3.local, app4.local and app5.local should all return the same IP address. I am then going to run a reverse proxy to resolve these names to their correct service on the local network. This publishing seems to be the express purpose of the balena-mdns-publisher, so I attempted to use it.

I see a lot of talk about this DBUS interaction, but all of the examples thus far have been old and rely on an initsystem being present in the container, or a single container project. In fact, all examples from Balena’s playground are like this:

![image](https://global.discourse-cdn.com/balena/original/2X/d/ddac6f9b545889675bc7d91889cb88fadc3bcda0.png)

It seems however that there is nothing in place to build or provide balena-mdns-publisher for ARM, only AMD64. This seems counter intuitive considering Balena’s goals. Why is this the case? As far as I can see, there is little documentation on interacting with the host AVAHI correctly. It always ends up causing the following documented bug, which has apparently been fixed since 2019, avahi 0.8, but has yet to be merged into upstream for whatever reason.

> <https://github.com/balena-os/meta-balena/issues/1287>
>
> Invoking the \`SetHostName\` method of the \`org.freedesktop.Avahi.Server\` interfac…e on v2.26 does not succeed (and host name is changed over and over):
> 
> \`\`\`
> Nov 14 17:35:27 balena avahi-daemon\[734\]: Changing host name to 'aaaaaa'.
> Nov 14 17:35:27 balena avahi-daemon\[734\]: Host name conflict, retrying with aaaaaa-2
> Nov 14 17:35:28 balena avahi-daemon\[734\]: Host name conflict, retrying with aaaaaa-3
> Nov 14 17:35:29 balena avahi-daemon\[734\]: Host name conflict, retrying with aaaaaa-4
> ...
> \`\`\`
> 
> Sample code for reproducing this (from a raspberrypi3-python container):
> \`\`\`
> import dbus
> 
> iface = 'org.freedesktop.Avahi.Server'
> 
> host\_name = 'aaaaaa'
> 
> bus = dbus.SystemBus()
> 
> avahi\_object = bus.get\_object('org.freedesktop.Avahi', '/')
> avahi\_server\_iface = dbus.Interface(avahi\_object, iface)
> 
> print(avahi\_server\_iface.GetHostName())
> 
> try:
> avahi\_server\_iface.SetHostName(host\_name)
> except dbus.exceptions.DBusException as err:
> if err.get\_dbus\_name() != "org.freedesktop.Avahi.NoChangeError":
> raise err
> 
> print(avahi\_server\_iface.GetHostName())
> \`\`\`
> 
> 
> \<img src="https://frontapp.com/assets/img/icons/favicon-32x32.png" height="16" width="16" alt="Front logo" /\> \[Front conversations\](https://app.frontapp.com/open/top\_fbbv)

> [@mDNS local access to device failing after a bit](https://forums.balena.io/t/mdns-local-access-to-device-failing-after-a-bit/27784):
>
> Hi, I’m running multiple containers on a RPIv3 on our network here. The hostname is set to “mqtt” and when we power up I can ping mqtt.local After a while (days+) we can no longer access mqtt.local I’ve remoted in through the OpenBalena instance it is connected to and checked what is running. I see the avahi-daemon is on a different hostname 754 avahi 5924 S avahi-daemon: running [mqtt-39.local] 770 avahi 5136 S avahi-daemon: chroot helper 4892 redsocks 4008 S avahi-…

I have seen the following threads and do not quite understand how they might allow me to do the same thing:

> [@Balena Supervisor & Avahi](https://forums.balena.io/t/balena-supervisor-avahi/23956/4):
>
> Hi Cameron, thanks for the response. I have a multi container project running on a balena fin 1.0 where several of the containers should expose services over MDNS / Avahi. So far: The host id.local is advertised by host os The zoo publisher example also advertises its services. However it using SystemD and creates an avahi service file. I have a node js application that uses the mdns npm module but it exposes programmatically its services and has no systemd. What seems to happen is that I ca…

> [@Possible to run Avahi for Samba Shares in multi-container environment?](https://forums.balena.io/t/possible-to-run-avahi-for-samba-shares-in-multi-container-environment/5629/6):
>
> Hey @drewcovi, my colleague also brought my attention to this project, that should be another example example of publishing a service with the system Avahi, in case it’s useful:
