Chapter 3: AT Commands Reference

+MSDNS, Set DNS IP Address

This command set/read DNS (Domain Name Server) IP address (primary/secondary) for each socket. If the user doesn't specify DNS servers by AT+MSDNS, G24-L will use default DNS from NW. The defined value(s) will be saved during disconnect PDP context (can be used in next PDP context), but will reset after power cycle.

 

 

 

 

Command Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Set

AT+MSDNS=[<Socket_id>[,

OK

 

 

<Primary DNS server IP>

or:

 

 

[,<Secondary DNS server

+CME ERROR: <err>

 

 

IP>]]]

 

 

 

 

 

 

 

 

Read

AT+MSDNS?

+MSDNS: 1,<Primary DNS server

 

 

 

IP>,< Secondary DNS server

 

 

 

IP><CR><LF>

 

 

 

+MSDNS: 2,<Primary DNS server

 

 

 

IP>,< Secondary DNS server

 

 

 

IP><CR><LF>

 

 

 

+MSDNS: 3,<Primary DNS server

 

 

 

IP>,< Secondary DNS server

 

 

 

IP><CR><LF>

 

 

 

+MSDNS: 4,<Primary DNS server

 

 

 

IP>,< Secondary DNS server

 

 

 

IP><CR><LF>

 

 

 

+MSDNS: 5,<Primary DNS server

 

 

 

IP>,< Secondary DNS server

 

 

 

IP><CR><LF>

 

 

 

<CR><LF>

 

 

 

OK

 

 

 

 

 

Test

AT+MSDNS=?

+MSDNS: (List of supported

 

 

 

<Socket_id>s),(<IP>),(<IP>)

 

 

 

 

 

 

 

 

 

The following table shows the +MSDNS parameters.

Table 3-210: +MSDNS Parameters

 

 

<Parameter>

Description

 

 

 

 

<Socket_id>

A unique number that identifies a connection (provided

 

by the terminal application).

 

0 - Invalid socket number

 

1,2,3,4 - Valid socket number

 

5 - Valid socket number dedicated to +MPING.

 

 

<Primary DNS server IP>, <Secondary

IP of the destination site in the format

DNS server IP>

"AAA.BBB.CCC.DDD". The range of each octant is

 

0-255. The value can be written in 1, 2, or 3 digits.

 

 

 

 

April 15, 2008

G24-L AT Commands Reference Manual

3-299

Page 363
Image 363
PIONEERPOS G24-LC manual +MSDNS, Set DNS IP Address, 210 +MSDNS Parameters, Primary DNS server IP, Secondary