Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-101
lan.config.dns.hostname
This attribute defines the dynamic DNS host name.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
LAN restore defaults
Nonvolatile memory
Instrument specific
(see
Details
)
Usage
hostName = lan.config.dns.hostname
lan.config.dns.hostname = hostName
hostName
The host name to use for dynamic DNS registration. The host name must:
•
be a string of 255 characters or less
•
start with a letter
•
end with a letter or digit
•
contain only letters, digits, and hyphens
Details
This attribute holds the host name to request during dynamic DNS registration. Dynamic DNS registration works
with DHCP to register the host name specified in this attribute with the DNS server.
The format for
hostname
is
"K-<model number>-<serial number>"
, where
<model number>
and
<serial number>
are replaced with the actual model number and serial number of the instrument (for
example,
"K-707B-1234567"
)Note that hyphens separate the characters of
hostname
.
The length of the fully qualified host name (combined length of the domain and host name with separator
characters) must be less than or equal to 255 characters. Although up to 255 characters can be entered here,
care must be taken to be sure the combined length is also no more than 255 characters.
Example
print(lan.config.dns.hostname)
Returns the present dynamic DNS host name.
Also see
(on page 7-100)
lan.config.dns.verify
This attribute defines the DNS host name verification state.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
LAN restore defaults Nonvolatile
memory
lan.ENABLE