LAN_HOSTNAME

 

Description

Get or Set Host Name in the device. It allows user to access the device by host name rather than IP address.

If the CHANNEL=n was set with this URL to the multiple channel video server, this URL is treated as read command and the router's host name will be returned.

Input Argument

character strings (< 32 Bytes)
where
The syntax of a legal Internet host name was specified in RFC 1123.
Here is the summary of the syntax rule of host name.
1. Only ASCII A~Z, a~z, 0~9, minus sign (-) and period (.) are allowed.
2. No blank or space characters are permitted as part of a name
3. The last character must not be a minus sign or period.
4. Single character name is not allowed.
5. The first character is allowed to either a letter or a digit.

Attribute

Return of Message

LAN_HOSTNAME='LocalHost'
OK: LAN_HOSTNAME='LocalHost'
or
ERROR: LAN_HOSTNAME='LocalHost'

Applicability

Status

Valid

See Also

LAN, LAN_IP, LAN_NETMASK

Example

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_HOSTNAME
or
http://ip:port/cgi-bin/cmd/system?LAN_HOSTNAME
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&LAN_HOSTNAME=LocalHost
or
http://ip:port/cgi-bin/cmd/system?LAN_HOSTNAME=LocalHost

Back to

HOME, SYSTEM CGI