User's Manual

Table Of Contents
Nonvolatile Parameter Database
AT+i Programmer‘s Manual Version 8.32 34-45
34.5.2 +iDNSn Define Domain Name Server IP Address
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 iChip Plus.
Where, p=‘S‘ to force the (serial) dial-up platform and p=‘L‘
to force the LAN 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 LAN 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.
Note: This parameter may be omitted when the target server is defined with an IP
addresses rather than a symbolic name.