Cannot figure out DNS config
Posted: 2025-01-19 10:03
My laptop is connected to home DSL which is configured with DHCP. From what i understand, DNS is also configured through DHCP.
I have a debian 12 system, in which i changed the resolv.conf to following
but when i run the following command it shows me DNS set by my DSL router
My question is, are the two IP4 DNS shown, are used by my system or network. If it is of my system, then why isn't it using DNS set in resolv.conf?
Edit
I got the following command through forums, i am not sure how it works or what it show
I have a debian 12 system, in which i changed the resolv.conf to following
Code: Select all
#
Generated by NetworkManager
nameserver 185.228.168.9
nameserver 8.8.8.8
nameserver 9.9.9.9
Code: Select all
( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS
IP4.DNS[1]: 192.168.10.1
IP4.DNS[2]: 192.168.25.1
Edit
I got the following command through forums, i am not sure how it works or what it show
Code: Select all
( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS