Data Sheet

!
5. TCP/IP-Related AT Commands
5.2.25. AT+CIPDNS_DEF—Sets User-defined DNS Servers; Configuration Saved in the Flash
Response
[+CIPDNS_CUR:<DNS󰐇server0>]
[+CIPDNS_CUR:<DNS󰐇server1>]
OK
OK
Parameters
<enable>:󰐇
0: disable to use user-defined DNS servers;
1: enable to use user-defined DNS servers.
<DNS󰐇server0>: optional parameter indicating the first DNS server;
<DNS󰐇server1>: optional parameter indicating the second DNS serve.
Example
AT+CIPDNS_CUR=1,"208.67.220.220"
Note
For command: AT+CIPDNS_CUR=0 (disable to use user-defined DNS servers), "208.67.222.222" will be
used as DNS server by default. And the DNS server may change according to the configuration of the
router which the chip connected to.
For command: AT+CIPDNS_CUR=1 (enable to use user-defined DNS servers, but the <DNS server>
parameters are not set), servers "208.67.222.222"󰐇will be used as DNS server by default.
Commands
Query Command:
AT+CIPDNS_DEF?
Function: Get the user-defined DNS
servers which saved in flash.
Set Command:
AT+CIPDNS_DEF=<enable>[,<DNS󰐇server0>,<DNS󰐇server1>]
Function: Set user-defined DNS servers.
Response
[+CIPDNS_DEF:<DNS󰐇server0>]
[+CIPDNS_DEF:<DNS󰐇server1>]
OK
OK
Parameters
<enable>:󰐇
0: disable to use a user-defined DNS server;
1: enable to use a user-defined DNS server.
<DNS󰐇server0>: optional parameter indicating the first DNS server;
<DNS󰐇server1>: optional parameter indicating the second DNS serve.
Example
AT+CIPDNS_DEF=1,"208.67.220.220"
Note
This configuration will be saved in the user parameter area of flash.
For command: AT+CIPDNS_DEF=0 (disable to use user-defined DNS servers), "208.67.222.222" will be
used as DNS server by default. And the DNS server may change according to the configuration of the
router which the chip connected to.
For command: AT+CIPDNS_DEF=1 (enable to use user-defined DNS servers, but the <DNS server>
parameters are not set), servers "208.67.222.222"󰐇will be used as DNS server by default.
Espressif
! /!55 58
2017.05