
Chapter 19 – TCP/IP App AT Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands (PN S000294J)
143
IP Address Lookup +WDNS
Description:
This command is used to display the IP address for a specified domain name. A DNS server is used to
perform the lookup of the domain name and return its associated IP address. Since there is a variable time
delay between the DNS server lookup request and the returned IP address, a multiple step process is used
to display the results of the DNS lookup. Refer to the following examples. An open PPP session is required.
Note:
The +WDNS command must be issued twice for each domain name lookup attempt.
Values
<domain name>
The domain name string to lookup. The quotes around the name are required. The
same domain name must be specified in the second command.
Syntax: Command
syntax:
AT+WDNS=”<domain name>”
Command
Possible responses
AT+WDNS=”www.wavecom.com”
Note: Lookup IP address for specified domain name.
AT+WDNS=”www.wavecom.com”
Note: Re-issue command to display results.
OK
Note: Command accepted.
…
+WDNS: 0
Note: Lookup on DNS server completed.
+WDNS: 213.41.30.26
OK
Note: IP address displayed.
AT+WDNS?
Note: Display last used domain name.
+WDNS: ”www.wavecom.com”
OK
AT+WDNS=”bad.dns.name”
Note: Lookup IP address.
A/
Note: Re-issue last command.
OK
Note: Command accepted.
…
+WDNS: 0
Note: Lookup on DNS server completed.
ERROR
+WDNS: 125
Note: Domain name not found.
Display IP Address +WIPC
Description:
This command is used to display the IP address that is currently assigned to the module. An open PPP
session is required.
Values:
None.
Syntax: Command
syntax:
AT+WIPC
Command
Possible responses
AT+WIPC
Note: Display current IP address.
+WIPC: 68.25.209.28
OK
Note: IP address displayed.
PPP Session Status +WPPP
Description:
This unsolicited response indicates a change in the PPP session status. The new PPP session status is
included in this response.
Response Values:
<status>
PPP session status.
200
PPP established and available.
201
PPP initialization in progress
202
PPP closed or unavailable
203
PPP is closing
Syntax: Response
syntax:
+WPPP: <status>
Possible responses
+WPPP: 200
Note: PPP Session established and available.