User Tools

Site Tools


linux:network:networkmanager-dns-config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:network:networkmanager-dns-config [2025/01/03 21:16] – created odeftalinux:network:networkmanager-dns-config [2025/01/03 21:21] (current) odefta
Line 1: Line 1:
 ====== NetworkManager DNS Configuration ====== ====== NetworkManager DNS Configuration ======
  
-===== Main Commands =====+Configure NetworkManager DNS settings to use reliable DNS servers (Google DNS + local router) while preventing automatic DHCP overwrites. \\  
 +This ensures stable DNS resolution for both general networking and Docker operations.
  
-<code> +===== Main Commands ===== 
 +<code>
 sudo nmcli con mod p8p1 ipv4.dns "8.8.8.8 8.8.4.4 192.168.1.1" sudo nmcli con mod p8p1 ipv4.dns "8.8.8.8 8.8.4.4 192.168.1.1"
 sudo nmcli con mod p8p1 ipv4.ignore-auto-dns yes sudo nmcli con mod p8p1 ipv4.ignore-auto-dns yes
Line 35: Line 37:
  
 <note> <note>
-Replace ''p8p1'' with your network interface name +  * Replace ''p8p1'' with your network interface name 
-You can see available interfaces with ''nmcli con show'' +  You can see available interfaces with ''nmcli con show'' 
-Configuration persists after reboot +  Configuration persists after reboot 
-Helps resolve Docker image pull issues and DNS resolution problems.+  Helps resolve Docker image pull issues and DNS resolution problems.
 </note> </note>
linux/network/networkmanager-dns-config.1735931802.txt.gz · Last modified: 2025/01/03 21:16 by odefta