My balena device is advertised under hostname.local, as expected. Now I would like it to be published also under different names (for a reverse proxy) and am trying to use balena-mdns-publisher for this purpose.
I’m using the sample configuration (below) with a few additional subdomains listed. However, none appears on my network (except hostname.local). I’m trying on an Intel NUC, for now.
Any idea what’s wrong or how I should configure the service?
#!/usr/bin/env python
import os
from xml import dom
domain = os.getenv('MDNS_DOMAIN')
subdomains = os.getenv('MDNS_SUBDOMAINS').split(',')
mdns_names = [ "mdns-publish-cname", f"{domain}.local" ]
mdns_names.extend([ f"{s.strip()}.{domain}.local" for s in subdomains ])
os.execv('/usr/local/bin/mdns-publish-cname', mdns_names)
Hello @Timple this is amazing! This is like a balena Block. Would you like to publish it on balenaHub to enable other developers from the community with this project?