User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 57
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
at+rsi_dnsserver=192.168.10.20\r\n
………………………………………………..
0x61 0x74 0x2B 0x72 0x73 0x69 0x5F 0x64 0x6E 0x73 0x73
0x65 0x72 0x76 0x65 0x72 0x3D 0x31 0x39 0x32 0x2E 0x31 0x36
0x38 0x2E 0x31 0x30 0x2E 0x32 0x30 0x0D 0x0A
For success, the response is
OK\r\n
………………….
0x4F 0x4B 0x0D 0x0A
DNS Resolution
Description
This command is used to send the domain name of a website to the module to
resolve the IP address. The domain name should be maximum of 134 bytes.
Command
at+rsi_dnsget
Usage
at+rsi_dnsget=<domain_name>\r\n
Parameters
domain_name - This is the domain name of the target website.
Response
Result Code
Description
OK<no. of IP addresses(1
byte)><IP address1(4
bytes)><IP address2(4
bytes)>…<IP address10(4
bytes)>
Returns the number of IP
addresses (in hex), and the
individual IP addresses (in hex),
up to a maximum of 10.
ERROR<Error code>
Failure
For example to resolve the IP address of www.google.com, send the command
as below
at+rsi_dnsget=www.google.com\r\n