Dns Xubuntu

Solved
Serge -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -

Hello,

I am installing Xubuntu 22.04.1 LTS and I would like to know how to change the DNS in the simplest way.

Thank you

Awaiting your assistance

Best regards.


3 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     

    Hello,

    The DNS server is configured in /etc/resolv.conf. To fix it, you can directly modify this file. However, this file is rewritten with each DHCP request (so typically each time you connect to a box). To make the change permanent, it's better to configure a custom DNS in NetworkManager, specifying that for the network in question (let's say your wifi network), you want to use custom DNS.

    By selecting "Automatic (addresses only)", you can then enter the DNS server(s) to use:

    NetworkManager
    NetworkManager

    If you want to do this for all your connections, see this link.

    Good luck

    0
  2. Serge
     

    Does not match my request!

    0
    1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
       

      And yet... so I invite you to reread the answer, or to rephrase your question, because I promise, that's how we reconfigure the DNS.

      0
  3. Serge
     

    Hello,

    The method seems complicated to me, wouldn't you have another way to do it without going through the terminal?

    0
    1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
       

      Do you have message #1?

      0