Arduino Function: WiFi.setDNS

Description

This function allows you to configure the DNS (Domain Name System) server.

Syntax

WiFi.setDNS(dns_server1)
WiFi.setDNS(dns_server1, dns_server2)

Parameters

  • dns_server1: the IP address of the primary DNS server
  • dns_server2: the IP address of the secondary DNS server


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc