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

feat: allow discovery of mDNS services #137

Merged
merged 7 commits into from
Jan 5, 2023
Merged

feat: allow discovery of mDNS services #137

merged 7 commits into from
Jan 5, 2023

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Jan 3, 2023

this builds on #48, adding the discovered nodes as "seed" entrypoints to sshparse, which will in turn apply Host rules as expected.

closes #48
refs #135
cc/ @wizardishungry


to try it out:

create with /etc/avahi/services/ssh.service:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>   
  <name replace-wildcards="yes">%h</name>
  <service>
    <type>_ssh._tcp</type>
    <port>22</port>
  </service>
</service-group>

then

service avahi-daemon restart

# to test:
avahi-browse -a

you can then run wishlist with -z and it should load all _ssh._tcp services accessible...

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 self-assigned this Jan 3, 2023
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 added the enhancement New feature or request label Jan 3, 2023
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 marked this pull request as ready for review January 3, 2023 19:36
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 changed the title WIP: allow discovery of mDNS services feat: allow discovery of mDNS services Jan 4, 2023
@caarlos0 caarlos0 merged commit ddebef0 into main Jan 5, 2023
@caarlos0 caarlos0 deleted the zeroconf branch January 5, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants