WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
99
11 DNS Command
11.1 Querying the IP Address: +DNS
Description
To query the IP address
Format
AT+DNS=<string> <CR>
Parameter
<string>: The website URL to be queried, in form of "
www.xxxx.com
"
or
www.xxxx.com
Return Value
N/A
Example
AT+DNS= www.baidu.com
OK
+DNS: 61.135.169.105
Query the IP address of
www.baidu.com
.
The module returns the IP address:
61.135.169.105.
AT+DNS="www.baidu.com"
OK
+DNS:61.135.169.105
Query the IP address of "
www.baidu.com
".
The module returns the IP address:
61.135.169.105.
Remarks
The URL length should not exceed 35 bytes.