AT Command

Description

AT+CDNSGIP AT command queries the IP address of the given domain name.

Usage
AT+CDNSGIP=


Support

Simcom Module Tutorial

Examples

AT+CDNSGIP="www.sim.com"
OK
+CDNSGIP:1,"www.sim.com","58.32.231.146"

KeywordsAT+CDNSGIP syntax, examples, parameters, error, input, response.

With Online AT Command Tester tool, you can test Simcom TCP/IP feature.

You can also send commands to set up TCP/IP connection in the ‘Script Mode’ tab of the AT Command Tester,


//Check the registration status
AT+CREG?

//Check attach status
AT+CGACT?

//Attach to the network
AT+CGATT=1

//Wait for Attach
WAIT=7

//Start task ans set the APN. Check your carrier APN
AT+CSTT="bluevia.movistar.es"

//Bring up the wireless connection
AT+CIICR

//Wait for bringup
WAIT=6

//Get the local IP address
AT+CIFSR
//Query the domain name of m2msupport.net
AT+CDNSGIP="m2msupport.net"

//Start a TCP connection to remote address. Port 80 is TCP.
AT+CIPSTART="TCP","74.124.194.252","80"

//Send teh TCP data
AT+CIPSEND
>
GET https://www.m2msupport.net/m2msupport/http_get_test.php HTTP/1.0