Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
How to set static DNS address?
Hi, WIZnet team!
I want to use WIZwiki-W7500 on local network without DHCP server. How to set static DNS address?
Thanks.
Question relating to:
2 Answers
9 years, 1 month ago.
Dear Takashi Matsuoka,
You can set the static DNS IP address. Please, refer to Line 116. on "./WIZnetInterface/Socket/DNSClient.cpp"
You can change DNS server by using set_address().
server.set_address("8.8.8.8", 53);
Thanks,
9 years, 1 month ago.
HI, Takashi Matsuoka
Thank you for your interests with WIZwiki-W7500.
DHCP is needed to get available IP for Internet. And as you said, If you do local network, It is no need.
But unfortunately, we do not support DNS server, only support DNS client.
If your question is just using domain name instead of static local IP, define local IP as any domain name.
However, if you need DNS server, you must build the local DNS server
I hope it helps you.
Thank you.