Re: change the default dns on fedora 40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/23/24 7:31 AM, François Patte wrote:
Bonjour,

I try to change the default dns configured by my ISP on a fedora 40.

Once upon a time it was easy: just change the file /etc/resolv.conf.... now....

So, according to some information got from the internet, I created a directory
/usr/lib/systemd/resolved.conf.d/

then wrote a file in this directory named fdn.conf with:

[Resolve]

DNS=80.67.169.12#ns0.fdn.fr 2001:910:800::12#ns0.fdn.fr
DNSSEC=yes
DNSOverTLS=yes

and restarted systemd-resolved.service (and NetworkManager), but this does not worked...

dig -x 2a01:cb14:81da:2800:3649:5bff:fe29:3ce0

returns:

;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out
;; communications error to 127.0.0.53#53: timed out

What did I miss?

Thank you.

I've had great luck with either using nmtui to change my DNS (the easiest way).

You can use Cockpit to do it as well. Enable the cockpit socket:

sudo systemctl enable cockpit.socket --now

Open your browser and go to localhost:9090

Escalate privileges, then go to networking and change it there.

You can also do it from the command line:

Let's say you want to use the Google DNS servers 8.8.8.8 and 8.8.4.4, and you want to ignore any DNS server which is defined in DHCP. Here's the syntax. It's three commands. Replace [interface] with the actual interface you want to change:

nmcli con mod [interface] ipv4.dns "8.8.8.8 8.8.4.4" ipv4.ignore-auto-dns yes

nmcli con down [interface]

nmcli con up [interface]

That *should* get you what you want. Holler if you have any questions.

--
Thomas
--
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux