Plain English

Sets the primary DNS server IPv4 address the Wi-Fi interface uses for hostname resolution when DHCP is off. Ignored at boot when `WLAN DHCP ON` has been issued.

When to use

Together with the other static-IP commands when the deployment can't rely on DHCP for DNS, or to override DHCP-supplied DNS on networks that mishandle it.

Syntax

WLAN DNS "<ipv4>"

Parameters

ParameterDescription
ipv4
Quoted dotted-quad IPv4 address of the primary DNS server.

Example

WLAN DNS "8.8.8.8"

Use 8.8.8.8 as the primary DNS resolver

Try it in the playground View all TSPL commands