Instructions
" " ! "  
 Espressif Systems
ESP8266 
AT Instruction Set
5.2.
TCP/IP 
1.
AT+CIPSTATUS – Check network connection status 
2.
AT+CIPDOMAIN – DNS function 
ESP8266 needs to connect to a router to access to the internet first, then it is able to call the DNS 
function.!
AT+CIPSTATUS – Check network connection status 
Command
AT+CIPSTATUS
Response
STATUS:<stat> 
+CIPSTATUS:<link ID>, <type>, <remote_IP>, <remote_port>, <local_port>, 
<tetype>
Parameters
<stat> status of ESP8266 station interface 
2 : ESP8266 station connected to an AP and has obtained IP 
3 : ESP8266 station created a TCP or UDP transmission 
4 : the TCP or UDP transmission of ESP8266 station disconnected 
5 : ESP8266 station did NOT connect to an AP 
<link ID> ID of the connection (0~4), for multi-connect 
<type> string, "TCP" or "UDP" 
<remote_IP> string, remote IP address 
<remote_port> remote port number 
<local_port> ESP8266 local port number 
<tetype>  
0 : ESP8266 runs as client 
1 : ESP8266 runs as server 
AT+CIPDOMAIN – DNS function
Example
AT+CWMODE=1 // Set station mode 
AT+CWJAP="SSID","password" // access to the internet 
AT+CIPDOMAIN="iot.espressif.cn" // DNS function
Command
AT+CIPDOMAIN=<domain name>
Response
+CIPDOMAIN:<IP address>
Parameters
<domain name> the domain name
Espressif Systems   /   Friday, July 15, 201654 73










