-
Windows:
- Open the "Control Panel."
- Navigate to "Network and Sharing Center."
- Click on "Change adapter settings."
- Right-click on the active network connection and select "Properties."
- Choose "Internet Protocol Version 4 (TCP/IPv4)" and click on "Properties."
-
macOS:
- Open "System Preferences."
- Select "Network."
- Choose the active network connection.
- Click on "Advanced."
- Go to the "DNS" tab.
-
Linux:
- Open the terminal.
- Edit the network configuration file or use a network manager tool.
- Locate and edit the DNS configuration.
-
For Windows:
- Select "Use the following DNS server addresses."
- Set the "Preferred DNS server" to the static IP address of your ESP32 (e.g.,
192.168.8.180
).
-
For macOS:
- Click on the "+" button under the "DNS Servers" section.
- Add the static IP address of your ESP32 (e.g.,
192.168.8.180
).
-
For Linux:
- Edit the network configuration file (e.g.,
/etc/network/interfaces
or/etc/resolv.conf
). - Add or modify the
nameserver
line to include the static IP address of your ESP32.
- Edit the network configuration file (e.g.,
-
For Windows:
- Click "OK" to save the changes.
-
For macOS:
- Click "OK" to save changes in the advanced settings.
- Click "Apply" to apply changes in the main network settings.
-
For Linux:
- Save the changes to the configuration file.
- Restart the network service or reboot the system.
-
Open a command prompt or terminal on the device.
-
Use the
nslookup
command to check DNS resolution:nslookup example.com
Replace
example.com
with a domain you want to look up.
If the configuration is correct, your device should now use the ESP32 as the DNS provider for DNS resolution. You can repeat these steps on other devices in the network that you want to use the ESP32 as the DNS server.