Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snap] Implement Local Domain Settings #3157

Open
benfrancis opened this issue Aug 22, 2024 · 2 comments
Open

[Snap] Implement Local Domain Settings #3157

benfrancis opened this issue Aug 22, 2024 · 2 comments
Labels
snap Issues relating to the snap package task
Milestone

Comments

@benfrancis
Copy link
Member

In the web interface at Settings -> Domain there is a check box to toggle mDNS/DNS-SD broadcasts on and off, and a text field to set the local hostname.

On other platforms this allows users to enable and configure a .local domain.

E.g. see https://github.com/WebThingsIO/gateway/blob/master/src/platforms/linux-raspbian.ts#L492

@benfrancis benfrancis converted this from a draft issue Aug 22, 2024
@benfrancis benfrancis added task snap Issues relating to the snap package labels Aug 22, 2024
@benfrancis benfrancis added this to the 2.0 milestone Aug 22, 2024
@benfrancis benfrancis moved this from Product Backlog to Sprint Backlog in WebThings Gateway Oct 17, 2024
@ogra1
Copy link
Contributor

ogra1 commented Oct 23, 2024

this should be trivial to achieve through the avahi-control interface that allows you to talk to the avahi daemon on the OS (either directly on classic installs or through the snap interface to the avahi snap on UbuntuCore (which you'd indeed need to bundle in the image))

Looking at the existing code you linked above it would indeed need some patching though since it extensively hacks directly into system files (like /etc/hosts and /etc/hostname) and uses long obsoleted tools (like iwlist instead of iw) but looking at the code it would surely benefit from some cleanup and abstraction anyway :)

@benfrancis
Copy link
Member Author

Thanks @ogra1. What is the mechanism for configuring the avahi daemon which should replace manually editing system configuration files? Are you able to provide some sample code? The documentation of the avahi-control interface doesn't provide very much information about how to use the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap Issues relating to the snap package task
Projects
Status: Sprint Backlog
Development

No branches or pull requests

2 participants