Technical information

Nonvolatile Parameter Database
2-134 AT+i Commands Reference Manual May 31, 2008
+iDNSn - Define Domain Name Server IP Address
Note: This parameter may be omitted when the target server is defined with an IP addresses
rather than a symbolic name.
Syntax: AT+iDNSn[p]=IP
Sets the Domain Name Server IP Address.
Use n=1 to define the Primary IP address of the Domain Name
Server associated with the ISP.
Use n=2 to define the alternate IP address.
IP::=<nnn>.<nnn>.<nnn>.<nnn>
where,
<nnn>: [000..255].
Parameters:
n=1..2
p= Optional communication platform modifier for W24 Plus. Where,
p='S' to force the (serial) dial-up platform and p='L' to force the
WLAN platform. p may be used to select any platform. If p is
omitted, the active platform will be used.
Command Options:
IP=0.0.0.0 Empty: No DNS defined.
IP=<IP add> IP add. Will be used to communicate to the Domain Name Server
on the Internet.
Default: Empty. No DNS defined. The DNS must be defined ad-hoc.
In a WLAN environment, an empty DNS (0.0.0.0) will acquire a
value from the DHCP server (if DIP is 0.0.0.0).
In a dial-up environment, the ISP will assign a DNS IP to an
empty DNS, if the ISP supports RFC 1877 (PPP Extensions for
Name Server Addresses).
Result Code:
I/OK If IP is an empty or legal IP address.
I/ERROR Otherwise.
AT+iDNSn[p]~IP Temporarily sets the DNS IP addresses. The permanent values
will be restored after completing the next session, whether the
session was successful or not.
AT+iDNSn[p]? Reports the current main/alternate DNS address. If no DNS
address exists, 0.0.0.0 will be returned. The reply is followed by
I/OK.
AT+iDNSn[p]=? Returns the message "IP Addr" followed by I/OK.