Resolv.conf
August 4th, 2022
Categories: Linux
Sometimes we got problems when resolving DNS because some app is messing around. We can check the DNS server list with the following command:
cat /etc/resolv.conf
We can add Google servers to resolve DNS to ensure that the conection issue won’t be related to DNS anymore.
sudo nano /etc/resolv.conf and we’ll add nameserver 8.8.8.8
To keep discarding connectivity issues, we can ping Google (ping google.es) and it should be resolved with the servers we just added. But if we’re not even getting response to ping 8.8.8.8 that would mean that we don’t have access to internet. To also discard a wiring issue, we’ll ping to the nearest local ip (router is usually 192.168.1.1)
Leave a comment
| Trackback
Null Games