DNS problems after upgrading from 16.04 to 17.10: How to reset the DNS settings to default?How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)DNS set to systemd's 127.0.0.53 - how to change permanently?DNS not working after upgrade 17.04 to 17.10Install Ubuntu 17.10 Wireless issueDNS server not respondingHow do you update the DNS resolver configuration without causing downtime?Help with hijacked dnsTrying to set DHCP IPs and manual DNS serveropenvpn does not change DNS server

Adjoints for radical and socle functors

Downgrading MacBook Pro 16” to Mojave

What else would an hot red wire be for in a split-tab outlet?

Can I exit from a different Schengen country than the one I entered from?

Buffer-local input history for read-from-minibuffer

Seen from Europe, why is there a hard separation between Republicans and Democrats in the US?

How could hearsay be better evidence than direct?

What happens if a player suffers a time penalty but doesn't have enough time left?

Why does the hyperref documentation suggest using gather instead of equation?

Movie where some soldiers go into a bunker in a city because of dangerous conditions outside

Quickened Seize the Day

How can I speed up secure erasing of a disk?

Does trajectory of an object orbiting a planet depend on the object's mass? (With hypothetical apollo example)

How do I defeat the Molduga

Why is it so important who the whistleblower in the Trump-Zelensky phone call is?

Good type of bike to get for commuting (thinking of road v touring)

Transferring $ from LLC to Personal account

How can I swallow pills more easily?

Who are the strongest non-professional GMs?

In a world where Magic steam Engines exist what would keep people from making cars

Rats biting off fuel line ( again and again and again )!

Why does the B-2 Spirit have a pattern of thin white lines?

Bash - draw a vertical line behind lines with variable length

Does Airplane Mode allow GPS location to pass through?



DNS problems after upgrading from 16.04 to 17.10: How to reset the DNS settings to default?


How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)DNS set to systemd's 127.0.0.53 - how to change permanently?DNS not working after upgrade 17.04 to 17.10Install Ubuntu 17.10 Wireless issueDNS server not respondingHow do you update the DNS resolver configuration without causing downtime?Help with hijacked dnsTrying to set DHCP IPs and manual DNS serveropenvpn does not change DNS server






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









7


















After upgrading from Ubuntu 16.04 to 17.10, the DNS settings doesn't seem to work anymore. I guess that this might have to do something with the migration from resolvconf to systemd-resolv.



How can I make sure that the installed packages and configurations are in default state as intended for 17.10?



For example, I noticed that resolvconf is installed and I removed it. However, this didn't solve the problem. I am guessing that there are more steps to make sure that it's on 17.10 default settings.



I can make it work (temporarily) by explicitly setting a nameserver in /etc/resolv.conf (for example nameserver 8.8.8.8), but this isn't the intended way to do it.










share|improve this question



























  • what about using google dns or opendns?

    – Lynob
    Oct 23 '17 at 7:01











  • The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

    – student
    Oct 23 '17 at 7:06











  • This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

    – krumpelstiltskin
    Oct 31 '17 at 10:24






  • 1





    My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

    – trpt4him
    Nov 8 '17 at 16:25

















7


















After upgrading from Ubuntu 16.04 to 17.10, the DNS settings doesn't seem to work anymore. I guess that this might have to do something with the migration from resolvconf to systemd-resolv.



How can I make sure that the installed packages and configurations are in default state as intended for 17.10?



For example, I noticed that resolvconf is installed and I removed it. However, this didn't solve the problem. I am guessing that there are more steps to make sure that it's on 17.10 default settings.



I can make it work (temporarily) by explicitly setting a nameserver in /etc/resolv.conf (for example nameserver 8.8.8.8), but this isn't the intended way to do it.










share|improve this question



























  • what about using google dns or opendns?

    – Lynob
    Oct 23 '17 at 7:01











  • The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

    – student
    Oct 23 '17 at 7:06











  • This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

    – krumpelstiltskin
    Oct 31 '17 at 10:24






  • 1





    My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

    – trpt4him
    Nov 8 '17 at 16:25













7













7









7


4






After upgrading from Ubuntu 16.04 to 17.10, the DNS settings doesn't seem to work anymore. I guess that this might have to do something with the migration from resolvconf to systemd-resolv.



How can I make sure that the installed packages and configurations are in default state as intended for 17.10?



For example, I noticed that resolvconf is installed and I removed it. However, this didn't solve the problem. I am guessing that there are more steps to make sure that it's on 17.10 default settings.



I can make it work (temporarily) by explicitly setting a nameserver in /etc/resolv.conf (for example nameserver 8.8.8.8), but this isn't the intended way to do it.










share|improve this question
















After upgrading from Ubuntu 16.04 to 17.10, the DNS settings doesn't seem to work anymore. I guess that this might have to do something with the migration from resolvconf to systemd-resolv.



How can I make sure that the installed packages and configurations are in default state as intended for 17.10?



For example, I noticed that resolvconf is installed and I removed it. However, this didn't solve the problem. I am guessing that there are more steps to make sure that it's on 17.10 default settings.



I can make it work (temporarily) by explicitly setting a nameserver in /etc/resolv.conf (for example nameserver 8.8.8.8), but this isn't the intended way to do it.







16.04 upgrade dns 17.10






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 14 at 18:44









Kevin Bowen

16.1k15 gold badges63 silver badges73 bronze badges




16.1k15 gold badges63 silver badges73 bronze badges










asked Oct 16 '17 at 19:14









studentstudent

2,0329 gold badges27 silver badges51 bronze badges




2,0329 gold badges27 silver badges51 bronze badges















  • what about using google dns or opendns?

    – Lynob
    Oct 23 '17 at 7:01











  • The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

    – student
    Oct 23 '17 at 7:06











  • This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

    – krumpelstiltskin
    Oct 31 '17 at 10:24






  • 1





    My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

    – trpt4him
    Nov 8 '17 at 16:25

















  • what about using google dns or opendns?

    – Lynob
    Oct 23 '17 at 7:01











  • The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

    – student
    Oct 23 '17 at 7:06











  • This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

    – krumpelstiltskin
    Oct 31 '17 at 10:24






  • 1





    My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

    – trpt4him
    Nov 8 '17 at 16:25
















what about using google dns or opendns?

– Lynob
Oct 23 '17 at 7:01





what about using google dns or opendns?

– Lynob
Oct 23 '17 at 7:01













The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

– student
Oct 23 '17 at 7:06





The 8.8.8.8 is the google dns. I tried it as suggested by spark, but it doesn't work.

– student
Oct 23 '17 at 7:06













This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

– krumpelstiltskin
Oct 31 '17 at 10:24





This post seems more complete (both the question and answer): askubuntu.com/questions/966870/…

– krumpelstiltskin
Oct 31 '17 at 10:24




1




1





My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

– trpt4him
Nov 8 '17 at 16:25





My 3 least favorite things about ubuntu have all collided -- networkmanager, systemd, and resolv.conf. Yippee...

– trpt4him
Nov 8 '17 at 16:25










6 Answers
6






active

oldest

votes


















10



















I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.




  1. The solution that temporarily worked was putting into /etc/systemd/resolved.conf



    DNS=<DNS server here>
    FallbackDNS=<DNS server here>


    and then restarting systemd-resolved by running



    #sudo systemctl restart systemd-resolved



  2. The other way is to change in /etc/NetworkManager/NetworkManager.conf



    dns=dnsmasq


    to



    dns=systemd-resolved


    Then restart NetworkManager by running:



    #sudo systemctl restart NetworkManager


and your DNS should work.






share|improve this answer























  • 2





    Thanks, however both methods don't work for me (even after reboot).

    – student
    Oct 23 '17 at 5:42


















2



















I found an excellent blog post about the latest Ubuntu's DNS problem with systemd-resolved that solved the issue for me.



The steps are :



  1. add a line nameserver 8.8.8.8 in /etc/resolv.conf

  2. install unbound with sudo apt-get install unbound


  3. disable the troublesome daemon with:



    sudo systemctl disable systemd-resolved



    sudo systemctl stop systemd-resolved



  4. add dns=unbound in the [main] section of /etc/NetworkManager/NetworkManager.conf


  5. enable unbound with:



    sudo systemctl enable unbound-resolvconf



    sudo systemctl enable unbound



  6. Reboot the computer





share|improve this answer




























  • But how can you download anything when there is no DBS

    – spark
    Oct 29 '17 at 8:58






  • 1





    That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

    – Grégoire C
    Oct 29 '17 at 10:03











  • Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

    – student
    Oct 31 '17 at 20:09


















2



















As @spark said, you must edit /etc/systemd/resolved.conf and after restarting the service, all thing work but you don't see any change in /etc/resolv.conf because systemd-resolved works differently from resolveconf service.



systemd-resolved use an intermediate resolver (127.0.0.53) to pass all requests to DNS servers that you specify in /etc/systemd/resolved.conf DNS section. so you shouldn't change /etc/resolv.conf directly. if you want to check if your changes are affected, you can open /run/systemd/resolve/resolv.conf to see your DNS servers. this is the file that systemd-resolved uses to resolve addresses.






share|improve this answer

































    2



















    Regarding the DNS problem I tried the four "fixes" noted above and none worked. I had lost my eth0 connection when my upgrade crashed with some missing files. I needed to get an Internet connection before I could do anything to fix problem so I tried this using ideas from your Solution 4:



    1. Edit the resolve.conf file by adding line nameserver 8.8.8.8

    2. install unbound with sudo apt-get install unbound

    After running 2 above I observed HAD AN INTERNET CONNECTION!
    Next, I did the following:




    1. sudo apt-get update

    2. sudo apt-get dist-upgrade.

    This reloaded the entire UBUNTU 17.10. Then I ran sudo install -f to fix any broken packages. The final result was a working system on my 12-year-old Althon 3500 64-bit machine. ABIT NF-91 mainboard, 2GB ram.






    share|improve this answer



































      1



















      Step 1:
      Checking Default route
      Use one of these commands:



      route -n


      or



      ip r


      Ask a new IP address and amend the connection with the next command:



      dhclient -v wlan0





      share|improve this answer

































        0



















        I had the same problem after upgrading from 17.04 to 17.10 although for me systemd-resolved was fine.



        The problem for me was in/etc/nsswitch.conf.



        After commenting out the hosts: files entries DNS worked again.






        share|improve this answer



























          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f965527%2fdns-problems-after-upgrading-from-16-04-to-17-10-how-to-reset-the-dns-settings%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          6 Answers
          6






          active

          oldest

          votes








          6 Answers
          6






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          10



















          I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.




          1. The solution that temporarily worked was putting into /etc/systemd/resolved.conf



            DNS=<DNS server here>
            FallbackDNS=<DNS server here>


            and then restarting systemd-resolved by running



            #sudo systemctl restart systemd-resolved



          2. The other way is to change in /etc/NetworkManager/NetworkManager.conf



            dns=dnsmasq


            to



            dns=systemd-resolved


            Then restart NetworkManager by running:



            #sudo systemctl restart NetworkManager


          and your DNS should work.






          share|improve this answer























          • 2





            Thanks, however both methods don't work for me (even after reboot).

            – student
            Oct 23 '17 at 5:42















          10



















          I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.




          1. The solution that temporarily worked was putting into /etc/systemd/resolved.conf



            DNS=<DNS server here>
            FallbackDNS=<DNS server here>


            and then restarting systemd-resolved by running



            #sudo systemctl restart systemd-resolved



          2. The other way is to change in /etc/NetworkManager/NetworkManager.conf



            dns=dnsmasq


            to



            dns=systemd-resolved


            Then restart NetworkManager by running:



            #sudo systemctl restart NetworkManager


          and your DNS should work.






          share|improve this answer























          • 2





            Thanks, however both methods don't work for me (even after reboot).

            – student
            Oct 23 '17 at 5:42













          10















          10











          10









          I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.




          1. The solution that temporarily worked was putting into /etc/systemd/resolved.conf



            DNS=<DNS server here>
            FallbackDNS=<DNS server here>


            and then restarting systemd-resolved by running



            #sudo systemctl restart systemd-resolved



          2. The other way is to change in /etc/NetworkManager/NetworkManager.conf



            dns=dnsmasq


            to



            dns=systemd-resolved


            Then restart NetworkManager by running:



            #sudo systemctl restart NetworkManager


          and your DNS should work.






          share|improve this answer
















          I had the same problems. My DNS stopped working after upgrading from 17.04 to 17.10.




          1. The solution that temporarily worked was putting into /etc/systemd/resolved.conf



            DNS=<DNS server here>
            FallbackDNS=<DNS server here>


            and then restarting systemd-resolved by running



            #sudo systemctl restart systemd-resolved



          2. The other way is to change in /etc/NetworkManager/NetworkManager.conf



            dns=dnsmasq


            to



            dns=systemd-resolved


            Then restart NetworkManager by running:



            #sudo systemctl restart NetworkManager


          and your DNS should work.







          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Dec 10 '17 at 17:16









          Pat

          1133 bronze badges




          1133 bronze badges










          answered Oct 20 '17 at 15:25









          sparkspark

          5981 gold badge3 silver badges13 bronze badges




          5981 gold badge3 silver badges13 bronze badges










          • 2





            Thanks, however both methods don't work for me (even after reboot).

            – student
            Oct 23 '17 at 5:42












          • 2





            Thanks, however both methods don't work for me (even after reboot).

            – student
            Oct 23 '17 at 5:42







          2




          2





          Thanks, however both methods don't work for me (even after reboot).

          – student
          Oct 23 '17 at 5:42





          Thanks, however both methods don't work for me (even after reboot).

          – student
          Oct 23 '17 at 5:42













          2



















          I found an excellent blog post about the latest Ubuntu's DNS problem with systemd-resolved that solved the issue for me.



          The steps are :



          1. add a line nameserver 8.8.8.8 in /etc/resolv.conf

          2. install unbound with sudo apt-get install unbound


          3. disable the troublesome daemon with:



            sudo systemctl disable systemd-resolved



            sudo systemctl stop systemd-resolved



          4. add dns=unbound in the [main] section of /etc/NetworkManager/NetworkManager.conf


          5. enable unbound with:



            sudo systemctl enable unbound-resolvconf



            sudo systemctl enable unbound



          6. Reboot the computer





          share|improve this answer




























          • But how can you download anything when there is no DBS

            – spark
            Oct 29 '17 at 8:58






          • 1





            That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

            – Grégoire C
            Oct 29 '17 at 10:03











          • Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

            – student
            Oct 31 '17 at 20:09















          2



















          I found an excellent blog post about the latest Ubuntu's DNS problem with systemd-resolved that solved the issue for me.



          The steps are :



          1. add a line nameserver 8.8.8.8 in /etc/resolv.conf

          2. install unbound with sudo apt-get install unbound


          3. disable the troublesome daemon with:



            sudo systemctl disable systemd-resolved



            sudo systemctl stop systemd-resolved



          4. add dns=unbound in the [main] section of /etc/NetworkManager/NetworkManager.conf


          5. enable unbound with:



            sudo systemctl enable unbound-resolvconf



            sudo systemctl enable unbound



          6. Reboot the computer





          share|improve this answer




























          • But how can you download anything when there is no DBS

            – spark
            Oct 29 '17 at 8:58






          • 1





            That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

            – Grégoire C
            Oct 29 '17 at 10:03











          • Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

            – student
            Oct 31 '17 at 20:09













          2















          2











          2









          I found an excellent blog post about the latest Ubuntu's DNS problem with systemd-resolved that solved the issue for me.



          The steps are :



          1. add a line nameserver 8.8.8.8 in /etc/resolv.conf

          2. install unbound with sudo apt-get install unbound


          3. disable the troublesome daemon with:



            sudo systemctl disable systemd-resolved



            sudo systemctl stop systemd-resolved



          4. add dns=unbound in the [main] section of /etc/NetworkManager/NetworkManager.conf


          5. enable unbound with:



            sudo systemctl enable unbound-resolvconf



            sudo systemctl enable unbound



          6. Reboot the computer





          share|improve this answer
















          I found an excellent blog post about the latest Ubuntu's DNS problem with systemd-resolved that solved the issue for me.



          The steps are :



          1. add a line nameserver 8.8.8.8 in /etc/resolv.conf

          2. install unbound with sudo apt-get install unbound


          3. disable the troublesome daemon with:



            sudo systemctl disable systemd-resolved



            sudo systemctl stop systemd-resolved



          4. add dns=unbound in the [main] section of /etc/NetworkManager/NetworkManager.conf


          5. enable unbound with:



            sudo systemctl enable unbound-resolvconf



            sudo systemctl enable unbound



          6. Reboot the computer






          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Oct 28 '17 at 10:31

























          answered Oct 27 '17 at 19:06









          Grégoire CGrégoire C

          1213 bronze badges




          1213 bronze badges















          • But how can you download anything when there is no DBS

            – spark
            Oct 29 '17 at 8:58






          • 1





            That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

            – Grégoire C
            Oct 29 '17 at 10:03











          • Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

            – student
            Oct 31 '17 at 20:09

















          • But how can you download anything when there is no DBS

            – spark
            Oct 29 '17 at 8:58






          • 1





            That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

            – Grégoire C
            Oct 29 '17 at 10:03











          • Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

            – student
            Oct 31 '17 at 20:09
















          But how can you download anything when there is no DBS

          – spark
          Oct 29 '17 at 8:58





          But how can you download anything when there is no DBS

          – spark
          Oct 29 '17 at 8:58




          1




          1





          That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

          – Grégoire C
          Oct 29 '17 at 10:03





          That's the purpose of step 1. It sets up the DNS of Google (8.8.8.8). The problem I had was that the file was overwritten on system boot.

          – Grégoire C
          Oct 29 '17 at 10:03













          Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

          – student
          Oct 31 '17 at 20:09





          Thanks, but that doesn't answer my question. I switched to unbound just after asking this question. The point of this quesiton is of how I reset all DNS related settings to factory default (in particular using systemd-resolved).

          – student
          Oct 31 '17 at 20:09











          2



















          As @spark said, you must edit /etc/systemd/resolved.conf and after restarting the service, all thing work but you don't see any change in /etc/resolv.conf because systemd-resolved works differently from resolveconf service.



          systemd-resolved use an intermediate resolver (127.0.0.53) to pass all requests to DNS servers that you specify in /etc/systemd/resolved.conf DNS section. so you shouldn't change /etc/resolv.conf directly. if you want to check if your changes are affected, you can open /run/systemd/resolve/resolv.conf to see your DNS servers. this is the file that systemd-resolved uses to resolve addresses.






          share|improve this answer






























            2



















            As @spark said, you must edit /etc/systemd/resolved.conf and after restarting the service, all thing work but you don't see any change in /etc/resolv.conf because systemd-resolved works differently from resolveconf service.



            systemd-resolved use an intermediate resolver (127.0.0.53) to pass all requests to DNS servers that you specify in /etc/systemd/resolved.conf DNS section. so you shouldn't change /etc/resolv.conf directly. if you want to check if your changes are affected, you can open /run/systemd/resolve/resolv.conf to see your DNS servers. this is the file that systemd-resolved uses to resolve addresses.






            share|improve this answer




























              2















              2











              2









              As @spark said, you must edit /etc/systemd/resolved.conf and after restarting the service, all thing work but you don't see any change in /etc/resolv.conf because systemd-resolved works differently from resolveconf service.



              systemd-resolved use an intermediate resolver (127.0.0.53) to pass all requests to DNS servers that you specify in /etc/systemd/resolved.conf DNS section. so you shouldn't change /etc/resolv.conf directly. if you want to check if your changes are affected, you can open /run/systemd/resolve/resolv.conf to see your DNS servers. this is the file that systemd-resolved uses to resolve addresses.






              share|improve this answer














              As @spark said, you must edit /etc/systemd/resolved.conf and after restarting the service, all thing work but you don't see any change in /etc/resolv.conf because systemd-resolved works differently from resolveconf service.



              systemd-resolved use an intermediate resolver (127.0.0.53) to pass all requests to DNS servers that you specify in /etc/systemd/resolved.conf DNS section. so you shouldn't change /etc/resolv.conf directly. if you want to check if your changes are affected, you can open /run/systemd/resolve/resolv.conf to see your DNS servers. this is the file that systemd-resolved uses to resolve addresses.







              share|improve this answer













              share|improve this answer




              share|improve this answer










              answered Oct 29 '17 at 6:42









              Ghasem PahlavanGhasem Pahlavan

              1,4319 silver badges19 bronze badges




              1,4319 silver badges19 bronze badges
























                  2



















                  Regarding the DNS problem I tried the four "fixes" noted above and none worked. I had lost my eth0 connection when my upgrade crashed with some missing files. I needed to get an Internet connection before I could do anything to fix problem so I tried this using ideas from your Solution 4:



                  1. Edit the resolve.conf file by adding line nameserver 8.8.8.8

                  2. install unbound with sudo apt-get install unbound

                  After running 2 above I observed HAD AN INTERNET CONNECTION!
                  Next, I did the following:




                  1. sudo apt-get update

                  2. sudo apt-get dist-upgrade.

                  This reloaded the entire UBUNTU 17.10. Then I ran sudo install -f to fix any broken packages. The final result was a working system on my 12-year-old Althon 3500 64-bit machine. ABIT NF-91 mainboard, 2GB ram.






                  share|improve this answer
































                    2



















                    Regarding the DNS problem I tried the four "fixes" noted above and none worked. I had lost my eth0 connection when my upgrade crashed with some missing files. I needed to get an Internet connection before I could do anything to fix problem so I tried this using ideas from your Solution 4:



                    1. Edit the resolve.conf file by adding line nameserver 8.8.8.8

                    2. install unbound with sudo apt-get install unbound

                    After running 2 above I observed HAD AN INTERNET CONNECTION!
                    Next, I did the following:




                    1. sudo apt-get update

                    2. sudo apt-get dist-upgrade.

                    This reloaded the entire UBUNTU 17.10. Then I ran sudo install -f to fix any broken packages. The final result was a working system on my 12-year-old Althon 3500 64-bit machine. ABIT NF-91 mainboard, 2GB ram.






                    share|improve this answer






























                      2















                      2











                      2









                      Regarding the DNS problem I tried the four "fixes" noted above and none worked. I had lost my eth0 connection when my upgrade crashed with some missing files. I needed to get an Internet connection before I could do anything to fix problem so I tried this using ideas from your Solution 4:



                      1. Edit the resolve.conf file by adding line nameserver 8.8.8.8

                      2. install unbound with sudo apt-get install unbound

                      After running 2 above I observed HAD AN INTERNET CONNECTION!
                      Next, I did the following:




                      1. sudo apt-get update

                      2. sudo apt-get dist-upgrade.

                      This reloaded the entire UBUNTU 17.10. Then I ran sudo install -f to fix any broken packages. The final result was a working system on my 12-year-old Althon 3500 64-bit machine. ABIT NF-91 mainboard, 2GB ram.






                      share|improve this answer
















                      Regarding the DNS problem I tried the four "fixes" noted above and none worked. I had lost my eth0 connection when my upgrade crashed with some missing files. I needed to get an Internet connection before I could do anything to fix problem so I tried this using ideas from your Solution 4:



                      1. Edit the resolve.conf file by adding line nameserver 8.8.8.8

                      2. install unbound with sudo apt-get install unbound

                      After running 2 above I observed HAD AN INTERNET CONNECTION!
                      Next, I did the following:




                      1. sudo apt-get update

                      2. sudo apt-get dist-upgrade.

                      This reloaded the entire UBUNTU 17.10. Then I ran sudo install -f to fix any broken packages. The final result was a working system on my 12-year-old Althon 3500 64-bit machine. ABIT NF-91 mainboard, 2GB ram.







                      share|improve this answer















                      share|improve this answer




                      share|improve this answer








                      edited Sep 14 at 18:47









                      Kevin Bowen

                      16.1k15 gold badges63 silver badges73 bronze badges




                      16.1k15 gold badges63 silver badges73 bronze badges










                      answered Feb 8 '18 at 22:13









                      Richard ModafferiRichard Modafferi

                      212 bronze badges




                      212 bronze badges
























                          1



















                          Step 1:
                          Checking Default route
                          Use one of these commands:



                          route -n


                          or



                          ip r


                          Ask a new IP address and amend the connection with the next command:



                          dhclient -v wlan0





                          share|improve this answer






























                            1



















                            Step 1:
                            Checking Default route
                            Use one of these commands:



                            route -n


                            or



                            ip r


                            Ask a new IP address and amend the connection with the next command:



                            dhclient -v wlan0





                            share|improve this answer




























                              1















                              1











                              1









                              Step 1:
                              Checking Default route
                              Use one of these commands:



                              route -n


                              or



                              ip r


                              Ask a new IP address and amend the connection with the next command:



                              dhclient -v wlan0





                              share|improve this answer














                              Step 1:
                              Checking Default route
                              Use one of these commands:



                              route -n


                              or



                              ip r


                              Ask a new IP address and amend the connection with the next command:



                              dhclient -v wlan0






                              share|improve this answer













                              share|improve this answer




                              share|improve this answer










                              answered Apr 20 '18 at 14:00









                              F.RahamimF.Rahamim

                              3362 silver badges14 bronze badges




                              3362 silver badges14 bronze badges
























                                  0



















                                  I had the same problem after upgrading from 17.04 to 17.10 although for me systemd-resolved was fine.



                                  The problem for me was in/etc/nsswitch.conf.



                                  After commenting out the hosts: files entries DNS worked again.






                                  share|improve this answer






























                                    0



















                                    I had the same problem after upgrading from 17.04 to 17.10 although for me systemd-resolved was fine.



                                    The problem for me was in/etc/nsswitch.conf.



                                    After commenting out the hosts: files entries DNS worked again.






                                    share|improve this answer




























                                      0















                                      0











                                      0









                                      I had the same problem after upgrading from 17.04 to 17.10 although for me systemd-resolved was fine.



                                      The problem for me was in/etc/nsswitch.conf.



                                      After commenting out the hosts: files entries DNS worked again.






                                      share|improve this answer














                                      I had the same problem after upgrading from 17.04 to 17.10 although for me systemd-resolved was fine.



                                      The problem for me was in/etc/nsswitch.conf.



                                      After commenting out the hosts: files entries DNS worked again.







                                      share|improve this answer













                                      share|improve this answer




                                      share|improve this answer










                                      answered Nov 8 '17 at 16:54









                                      GilesGiles

                                      1




                                      1































                                          draft saved

                                          draft discarded















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f965527%2fdns-problems-after-upgrading-from-16-04-to-17-10-how-to-reset-the-dns-settings%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown









                                          Popular posts from this blog

                                          Tamil (spriik) Luke uk diar | Nawigatjuun

                                          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                                          Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?