mDNS

mdns.enabled

Abbreviationmd e
Accessget/set

Description

Enable the mDNS daemon (i.e. background process). The process is started when the configured interface is brought up (see mdns.interface). If the network interface is already up when mDNS is enabled, bring the network interface down and up again to start mDNS (see network_down, network_up). See Networking and Security, Network Discovery.

Note: When mDNS is enabled, .local domains are first attempted to be resolved using mDNS. If the attempt fails, standard DNS is then attempted.

Arguments

<0/1>

Default

0

Set example

> set mdns.enabled 1
Set OK

Get example

> get md e
1

mdns.interface

Abbreviationmd i
Accessget/set

Description

The network interface on which the mDNS daemon runs. See Networking and Security, Network Discovery.

Arguments

<default/softap/wlan>

Default

default

Properties

Supported Platforms

Set example

> set mdns.interface wlan
Set OK

Get example

> get md i
wlan

mdns.name

Abbreviationmd n
Accessget/set

Description

The mDNS domain name of the module.

Note:

Arguments

<name>

Default

ZentriOS-#

Properties

Supported Platforms

Set example

> set mdns.name MyDomain_#
Set OK

Get example

> get md n
MyDomain_#

mdns.service

Abbreviationmd s
Accessget/set

Description

Advertise a module server via mDNS. See Networking and Security, Network Discovery.

The corresponding server must be enabled and configured to auto-start before the service is advertised via mDNS.

Arguments

set syntax

<server name> [<name> [<txt> [<service type>] ] ] where:

<server name> The name of a ZentriOS server protocol. The following servers are available:
http - HTTP server
tcp - TCP server
udp - UDP server
remote_terminal - Remote Terminal server
<name> An additional name/description of the service. For example: Sensor HTTP Server.
To disable advertising of an mDNS service, set the <name> argument to -1
<txt> Additional configuration settings for the service. This is a Bonjour style TXT Record, consisting of a string of = pairs, separated by an ASCII '.' character (code 0x2E). e.g. set mdns.service http "Test Server" "record1=on.record2=off.another=21"
<service type> The service registration type. (Note: .local is appended to the end) By default, the following server/service type is used:
HTTP server - _http._tcp.local
TCP server - _ZentriOS._tcp.local
UDP server - _ZentriOS._udp.local
Remote Terminal server - _telnet._tcp.local

get syntax

<server name> where: <server name> is one of:

The response lists the attributes as follows: "<name>" "<txt>" <type> e.g.

> get md s http
"Test Server" "record1=on.record2=off.another=21" _http._tcp.local

If all is specified to list status of all servers, the response lists the servers and attributes as follows:

<server name> - <name>.type <txt>
...

e.g.

> get md s all
http - Test Server._http._tcp.local record1=on.record2=off.another=21
tcp - my_tcp_server._ZentriOS._tcp.local
udp - Disabled
remote_terminal - Disabled

Default

-

Properties

Supported Platforms

Set example

Advertise tcp service as my_tcp_server

> set md s tcp my_tcp_server
Set OK
> get md s all
http - Disabled
tcp - my_tcp_server._ZentriOS._tcp.local
udp - Disabled
remote_terminal - Disabled

Disable advertising of tcp service

> set md s tcp -1
Set OK
> set md s tcp -1
Set OK
> get md s all
http - Disabled
tcp - Disabled
udp - Disabled
remote_terminal - Disabled

Get example

> get md s tcp
"my_tcp_server" "" _ZentriOS._tcp.local

mdns.ttl

Abbreviationmd t
Accessget/set

Description

Sets the timeout of the module's mDNS response in seconds: the "Time-to-Live" of a mDNS response from the module. This is essentially a timeout of the validity of a mDNS record. Once expired, a remote client will reprobe the module for an updated response. See Networking and Security, Network Discovery.

Arguments

<seconds> where <seconds> is in the range 1 - 65535.

Default

300

Properties

Supported Platforms

Set example

> set mdns.ttl 1000

Get example

> get mdns.ttl
1000