1gmdns(1)                             2020                             gmdns(1)
2
3
4

NAME

6       gmdns - Tool for doing mDNS operations
7
8

SYNOPSIS

10       gmdns [-n|--name str] [-t|--type str] [-m|--domain str] [-o|--host str]
11       [-i|--interface  num]  [-y|--nettype  unspec|ipv4|ipv6]  [-s|--service]
12       [-x|--txt   str]   [-p|--port   num]   [-c|--close-on-done]  [--timeout
13       time_in_msecs] [-d|--debug] [-h|--help]
14
15

DESCRIPTION

17       The gmdns program allows you to advertise an mDNS service or query  for
18       mDNS services on the local network.
19
20

OPTIONS

22       -n|--name str
23              The name field for the service/query.
24
25       -t|--type str
26              The type field for the service/query.
27
28       -m|--domain str
29              The domain field for the service/query.
30
31       -o|--host str
32              The host field for the service/query.
33
34       -i|--interface num
35              The  interface  number  for  the  service/query.   If  -1,  ser‐
36              vice/query all the interfaces on the system.  Defaults to -1.
37
38       -y|--nettype unspec|ipv4|ipv6
39              The network type for the service/query.   If  unspec,  the  ser‐
40              vice/query  is  for  IPv4 and IPv6.  Otherwise it's only for the
41              specified protocol.  Defaults to unspec.
42
43       -s|--service
44              Advertise a network service instead of doing a query.   In  this
45              case,  the  name,  type, and port options must be provided.  The
46              others are optional and should not be provided unless  you  need
47              them.
48
49       -x|--txt str
50              Add  the string to the set of text strings advertised for a ser‐
51              vice.  Only makes sense with -s.
52
53       -p|--port str
54              Use the given port for the advertised service.  Only make  sense
55              with -s.
56
57       -c|--close-on-done
58              For  a  query,  after all currently known services are reported,
59              exit.
60
61       --timeout time
62              The amount of time to wait, in milliseconds, before closing  ev‐
63              erything and terminating.
64
65       -d|--debug
66              Generate  debugging output.  Specifying more than once increases
67              the output.
68
69       -h|--help
70              Help output
71
72

STRING VALUES FOR QUERIES

74       The string values for queries may use regular expressions or globs.  If
75       the string starts with '%', then the data after it is treated as a reg‐
76       ular expression and fields are matched against  that.   If  the  string
77       starts  with  '@', the the data after it is treated as a standard glob.
78       See the regex(7) and glob(7) man pages for details.
79
80       If the string starts with '=', an exact comparison  is  done  with  the
81       data after it.
82
83       If the string starts with a-z0-9_ or a space, then an exact string com‐
84       parison is done, including the first character.
85
86       The behavior of matching for any other starting character is undefined.
87       In  general,  you  should  always  use '@', '%', or '=' as the starting
88       character of all your query strings to be sure.
89
90

SEE ALSO

92       gensio_mdns(3), regex(7), glob(7)
93
94

KNOWN PROBLEMS

96       None.
97
98

AUTHOR

100       Corey Minyard <minyard@acm.org>
101
102
103
104Oct                                   15                              gmdns(1)
Impressum