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

Explain mdnsctl publish behaviour more fully in manpage #24

Open
nxg opened this issue Nov 8, 2017 · 3 comments
Open

Explain mdnsctl publish behaviour more fully in manpage #24

nxg opened this issue Nov 8, 2017 · 3 comments

Comments

@nxg
Copy link

nxg commented Nov 8, 2017

The manpage gives a brief example of using mdnsctl to publish a service. The example is perhaps a little too brief.

From the name, and from the (of course, only roughly standardised) behaviour of other fooctl tools on various unixes, I expected that the mdnsctl publish command would communicate with the running daemon, adjust its configuration, and exit. The manpage, and its publish example, did not make me think otherwise. When I saw the process ‘hanging’, I went to the mdnsctl source to confirm that the main() did indeed intend to be in a forever-loop.

Looking at closed issue #6 , I can see that I am not the only one to be confused about this.

It would be good if the manpage (i) gave a slightly fuller explanation, which mentioned that the process is supposed to ‘hang’, that (ii) it's useful to redirect the output, and that (iii) there will indeed be one process per published service, by design.

@colakong
Copy link

I played with this a bit, and managed to publish SMB shares with mdnsctl. It worked when using VLC on Linux to use the published shares. The commands I used for this were:

# For mDNS
# (Using a service name with a space character in it didn't work for VLC discovery)
doas mdnsctl publish "my-smb" _smb tcp 445 ""

# For ZeroConf
doas mdnsctl publish "my smb" smb tcp 445 ""

@haesbaert
Copy link
Owner

The manpage gives a brief example of using mdnsctl to publish a service. The example is perhaps a little too brief.

I agree, I'm accepting diffs for the manpage.
I've been busy with life/work lately and didn't have much time to put into mdnsd, but soon I will.

@nxg
Copy link
Author

nxg commented Aug 22, 2018

I'll nag you again when my own issue lists are of zero length (translation: no rush!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants