On 4/24/23 00:19, Tim via users wrote:
On Mon, 2023-04-24 at 12:25 +0930, Tim via users wrote:
What's your DHCP server? (A PC, a hardware router?)
It is a frontier DSL modem/router/dhcp sever/hub
Can you configure
it correctly for your network preferences?
Is configuring your DHCP server with the DNS server address you want
your clients to use possible? This would automate things for you.
A DHCP server will tell clients what DNS server to use, and it's only
passing that information along to the clients (you are this IP, use
that gateway, use that DNS server, etc). What it uses for itself is a
different configuration.
My main computers uses a caching name server.
There are devices outside my protected network
at use the name server from the router. These
devices are on the unprotected side and would
not be able to see my name server.
I worked around it with these two commands:
# nmcli device modify eno2 ipv4.dns "127.0.0.1"
# nmcli connection modify "Wired connection 2" ipv4.ignore-auto-dns yes
I also discovered that the `dhclient -r; dhclient`
command still updates /etc/resolv.conf
But the up and down nmcli command fixes it.
nmcli up/down commands:
Show connections and devices:
$ /usr/bin/nmcli connection
NAME UUID TYPE
DEVICE
Wired connection 2 3d30b55f-3675-3e71-88fd-a9796720a9f3 ethernet
eno2
virbr0 72451e48-3fe4-44a6-9648-c632f9b45123 bridge
virbr0
Wired connection 1 3bbdbba2-be96-3a0f-b0d5-b8a34912e7b7 ethernet
--
Up:
/usr/bin/nmcli connection up "Wired connection 2"
/usr/bin/nmcli device up eno2
Down:
/usr/bin/nmcli connection down "Wired connection 2"
/usr/bin/nmcli device up down
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue