I am trying to run a Raspberrypi as a routing machine. It will be connected to wifi with wpa_supplicant.
My PC ----> Raspberry Pi ----> Wifi Router
The thing is I noticed, the RPi got from the wifi router a dynamic DNS name, which is 192.168.10.1. On my PC, I can ping 126.96.36.199, but I cannot resolve name. I have to manually change the /etc/resolv.conf so that it uses the google DNS server, then I will have internet.
my PC got the DNS server from the RPi.
nmcli dev show | grep DNS gives: IP4.DNS: 192.168.10.1
This IP is under another sub net, my PC will not able to recognize it. So what can I do? The solution I thought is to assign the DNS server while connecting with wpa_supplicant. Can I do it?