narpaw
1
-> AT
<- [OK]
-> AT+NSET=192.168.0.47,255.255.255.0,192.168.0.1
<- [OK]
-> AT+WWPA=1234567890
<- [OK]
-> AT+WA=PointName
<- IP SubNet Gateway
<- 192.168.0.47: 255.255.255.0: 192.168.0.1
<- [OK]
-> AT+DNSLOOKUP=my_domain.com
<- [ERROR]
<- P=my_domain.com
I have problem with Query DNS server for address of hostname URL. What is the reason this error and what is P = … after [ERROR]?
Software version:
N=2.3.1
S2W WLAN VERSION=2.0.27
Hello narpaw
Regarding a dns-lookup, please refer to the below examples.
- DHCP
Generally, you don’t need to set a dns-server.
AT+WD
[OK]
AT+WM=0
[OK]
AT+WWPA=123456789
[OK]
AT+NDHCP=1
[OK]
AT+WA=Wiznet_Kaizen
IP SubNet Gateway
192.168.15.15: 255.255.255.0: 192.168.15.1
[OK]
AT+DNSLOOKUP=google.com
IP:173.194.126.201
[OK]
- Static IP
If you use a static IP for WizFi210, you need to set a dns server manually as below.
I just used google dns server(8.8.8.8) for a test.
AT+WD
[OK]
AT+WM=0
[OK]
AT+WWPA=123456789
[OK]
AT+NDHCP=0
[OK]
AT+DNSSET=8.8.8.8
[OK]
AT+NSET=192.168.15.111,255.255.255.0,192.168.15.1
[OK]
AT+WA=Wiznet_Kaizen
IP SubNet Gateway
192.168.15.111: 255.255.255.0: 192.168.15.1
[OK]
AT+DNSLOOKUP=google.com
IP:173.194.127.227
[OK]
In above your log, you used the static ip, it means that you need to set a dns server like <AT+DNSSET=8.8.8.8>.
Steve