DNS_PRIMARY, DNS_SECONDARY

Description

Get or Set Primary or Secondary DNS (Domain Name Server) IP addresses.

If the CHANNEL=n was set with this URL to the Multi-Channel device, the Router's DNS configurations will be returned.

Input Argument

IPv4 Addressing (xxx.xxx.xxx.xxx)

Attribute

Return of Message

DNS_PRIMARY='168.95.1.1'
DNS_SECONDARY=''
OK: DNS_PRIMARY='168.95.1.1'
OK: DNS_SECONDARY=''
or
ERROR: DNS_PRIMARY='168.95.1.1'
ERROR: DNS_SECONDARY=''

Applicability

Status

Valid

See Also

DNS, WAN_STATUS, V2_WAN_STATUS

Example

http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DNS_PRIMARY
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DNS_SECONDARY
or
http://ip:port/cgi-bin/cmd/system?DNS_PRIMARY
http://ip:port/cgi-bin/cmd/system?DNS_SECONDARY
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DNS_PRIMARY='168.95.1.1'
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&DNS_SECONDARY=''
or
http://ip:port/cgi-bin/cmd/system?DNS_PRIMARY='168.95.1.1'
http://ip:port/cgi-bin/cmd/system?DNS_SECONDARY=''

Back to

HOME, SYSTEM CGI