Anyone have working GPRS commands for SIM900A modem?

I am not able to connect to the server with SIM908A modem. These are the commands i used

mySerial.write("AT+CGATT=1");
//Attach a GPRS Service
mySerial.write("\n\r");
mySerial.write("AT+CGDCONT=1,"IP","airtelgprs.com"");
//Define PDP Context
mySerial.write("\n\r");
mySerial.write("AT+CDNSCFG="208.67.222.222","208.67.220.220"");
//Configure Domain Name Server. You can use Google public DNS as well
mySerial.write("\n\r");
mySerial.write("AT+CSTT="airtelgprs.com","",""");
//Set Access point, User ID, and password
mySerial.write("\n\r");
mySerial.write("AT+CIICR");
//Bring up wireless connection with GPRS P.S. Time consuming
mySerial.write("\n\r");
delay(1000);
mySerial.write("AT+CIFSR");
// Get Local IP address. No actually needed though.
mySerial.write("\n\r");
mySerial.write("AT+CIPSTATUS");
// Get Connection Status P.S. It should be 'IP STATUS'.
// This can be used as a check point.
mySerial.write("\n\r");
mySerial.write("AT+CIPHEAD=1");
// Add headers to the HTTP request.
mySerial.write("\n\r");
mySerial.write("AT+CDNSORIP=0");
//Indicates whether connection request will be using IP address (0), or domain name (1)
mySerial.write("\n\r");
mySerial.write("AT+CIPSTART="TCP","xxx.xx.xx.xxx","747"");
//Start up TCP connection (mode, IP address/name, port) P.S. if returns 'CONNECT OK' then you're lucky
mySerial.write("\n\r");
mySerial.write("AT+CIPSEND");
//Telling the GSM module that we're going to send the data
mySerial.write("\n\r");
mySerial.write("sending data from GPRS modem");
//And finally here comes the actual HTTP request
//The following are the headers that must be set.
mySerial.write("\n\r");
mySerial.write("\n");
mySerial.write((char)26);
//It tells the GSM module that we're not going to send data anymore
// char ctrlZ = 0x1A;
mySerial.write("\n\r");

Okay issue solved. problem with
mySerial.write(" ");
mySerial.write("\n\r");

i replaced both the commands with single command mySerial.println(" "); then it worked.

what is STATE: IP GPRSACT ?

Why i am not able to connect ?

AT+CDNSCFG="208.67.222.222","208.67.220.220"

ERROR

AT+CDNSCFG?

PrimaryDns: 0.0.0.0
SecondaryDns: 0.0.0.0