You need to turn off the auto dns. To list the ipv4 options do:Never wanting to go somewhere until I'm sure I can return first, I thought perhaps I'd learn about nmcli... Shall we say on that note, after a while I decided to take your word for it! And all that was totally successful, thank you. (And memorably useful, as I'm grasping some of the basics now.) I added Only the Pi-Hole IP as dns.ipv4 with no secondary. But this succeeds only in creating an identical configuration to the Desktop Edit of the connection. Where the Added DNS address become Primary but the DHCP acquired DNS address is still listed as Secondary. The goal is to have only the Primary such that Prioritization doesn't enter into the equation. In an identical case with a router not prioritizing DNS addresses long ago someone explained to me that dmasq (figuratively?) has a checkbox to Enable Prioritization, that rarely gets checked (or in Netgear's case isn't even present). The router would simply use one for a while then randomly(?) decide to use the other. And this is apparently exactly what the RP5 is doing.
Code:
sudo nmcli con show 'Wired connection 1' | grep ipv4
The commands to to ignore dhcp supplied dns are:
Code:
sudo nmcli con show 'Wired connection 1' ipv4.ignore-auto-dns yessudo nmcli con reload 'Wired connection 1'sudo nmcli con down 'Wired connection 1'sudo nmcli con up 'Wired connection 1'
Statistics: Posted by kmacdchap — Fri Jan 10, 2025 3:07 am