8 years, 6 months 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:

/ WIZnetInterface Featured
This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500. tcp/ip, W5500, W5500 Ethernet shield, W7500, W7500P, Wiznet, WIZnetInterface, WIZwiki_W7500, WIZwiki_W7500ECO, WIZwiki_W7500P

2 Answers

8 years, 5 months 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,

Accepted Answer

Hi, Kim-san. I tried this solution, it's fine. Thank you.

posted by Takashi Matsuoka 04 Dec 2015
8 years, 5 months 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.

Hi, Lee-san.

Thank you for your answer. My local network don't have DHCP server, and it network have DNS server. I want to setup static IP and static DNS IP to WIZwiki-W7500.

Can I set static DNS IP to WIZwiki-W7500?

Thank you.

posted by Takashi Matsuoka 06 Oct 2015