WIZnet Developer Forum

DNS server ip address

Hi,

Is it possible to read out the DNS ip address if you run the module in DHCP mode. The DNS ip address is received in a message from the DHCP server normally.

Thanks!

Hi jonas

Please refer to the below.

[code]at+nstat=?
MAC=00:08:dc:1c:d7:47
WSTATE=CONNECTED MODE=AP
BSSID=64:e5:99:b8:60:5a SSID=“wizohp” CHANNEL=2 SECURITY=WPA2-PERSONAL
RSSI=-54
IP addr=192.168.13.23 SubNet=255.255.0.0 Gateway=192.168.13.1
DNS1=168.126.63.1 DNS2=8.8.8.8
Rx Count=143839 Tx Count=11856932

[OK]

at+dnslookup=google.com
IP:173.194.38.67
[OK]
[/code]

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.