PioneerPOS G24-LC 用户手册

下载
页码 444
Chapter 3:  AT Commands Reference
 April 15, 2008
G24-L AT Commands Reference Manual
3-299
+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.
The following table shows the +MSDNS parameters.
Command Type
Syntax
Response/Action
Remarks
Set
AT+MSDNS=[<Socket_id>[,
<Primary DNS server IP> 
[,<Secondary DNS server 
IP>]]]
OK
or:
+CME ERROR: <err>
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>)
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 
DNS server IP>
IP of the destination site in the format 
"AAA.BBB.CCC.DDD". The range of each octant is 
0-255. The value can be written in 1, 2, or 3 digits.