How do you remove bad DNS server IPs from systemd-resolved? Unicorn Meta Zoo #1: Why another...

Is it OK if I do not take the receipt in Germany?

Retract an already submitted Recommendation Letter (written for an undergrad student)

What is the purpose of the side handle on a hand ("eggbeater") drill?

Why isn't everyone flabbergasted about Bran's "gift"?

What was Apollo 13's "Little Jolt" after MECO?

Where to find documentation for `whois` command options?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Raising a bilingual kid. When should we introduce the majority language?

In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω

Is Bran literally the world's memory?

How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?

Page Layouts : 1 column , 2 columns-left , 2 columns-right , 3 column

My admission is revoked after accepting the admission offer

Does Prince Arnaud cause someone holding the Princess to lose?

Did war bonds have better investment alternatives during WWII?

What is a 'Key' in computer science?

Is a self contained air-bullet cartridge feasible?

Coin Game with infinite paradox

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

When I export an AI 300x60 art board it saves with bigger dimensions

What is the definining line between a helicopter and a drone a person can ride in?

Stretch a Tikz tree

What is /etc/mtab in Linux?

How to translate "red flag" into Spanish?



How do you remove bad DNS server IPs from systemd-resolved?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionWhy doesn't systemd-resolved use my local DNS server?Default DNS server settingsHow to configure systemd-resolved and systemd-networkd to use local DNS server for resolving local domains and remote DNS server for remote domains?How to configure systemd-resolved for mdns multicast dns on local network?DNS is not applied with systemd-resolvedsystemd-resolved - how to stop forwarding and go direct to DNSBLs / RBLs (mailserver blacklists)How to make systemd-resolved stop trying to use offline DNS servers?How single-label dns lookup requests are handled by systemd-resolved?Why is systemd-resolved falling back to using Google Public DNS over IPv6 when I did not configure it to do that?What is the recommended way to set a global DNS server override on a system using systemd-resolved?





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







0















So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure how as only the real router sends IPv6 RA packets) but long story short, now all my machines are sending DNS queries to an IP address that doesn't exist.



If I restart resolved with systemctl restart systemd-resolved then resolvectl still shows these bogus IPs as valid name servers.



They are listed in /etc/resolv.conf so if I delete them there and restart systemd-resolved it just adds the bogus IPs back in again.



If I look in the logs with journalctl --unit=systemd-resolved then it tells me the bogus IPs are operating in "degraded feature mode" but doesn't tell me where it found those IPs to begin with.



Where is it picking up these wrong IP addresses from?? Is there some cache file I need to delete to make it go back to only using the IPs supplied from the IPv6 router advertisements only?










share|improve this question





























    0















    So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure how as only the real router sends IPv6 RA packets) but long story short, now all my machines are sending DNS queries to an IP address that doesn't exist.



    If I restart resolved with systemctl restart systemd-resolved then resolvectl still shows these bogus IPs as valid name servers.



    They are listed in /etc/resolv.conf so if I delete them there and restart systemd-resolved it just adds the bogus IPs back in again.



    If I look in the logs with journalctl --unit=systemd-resolved then it tells me the bogus IPs are operating in "degraded feature mode" but doesn't tell me where it found those IPs to begin with.



    Where is it picking up these wrong IP addresses from?? Is there some cache file I need to delete to make it go back to only using the IPs supplied from the IPv6 router advertisements only?










    share|improve this question

























      0












      0








      0








      So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure how as only the real router sends IPv6 RA packets) but long story short, now all my machines are sending DNS queries to an IP address that doesn't exist.



      If I restart resolved with systemctl restart systemd-resolved then resolvectl still shows these bogus IPs as valid name servers.



      They are listed in /etc/resolv.conf so if I delete them there and restart systemd-resolved it just adds the bogus IPs back in again.



      If I look in the logs with journalctl --unit=systemd-resolved then it tells me the bogus IPs are operating in "degraded feature mode" but doesn't tell me where it found those IPs to begin with.



      Where is it picking up these wrong IP addresses from?? Is there some cache file I need to delete to make it go back to only using the IPs supplied from the IPv6 router advertisements only?










      share|improve this question














      So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure how as only the real router sends IPv6 RA packets) but long story short, now all my machines are sending DNS queries to an IP address that doesn't exist.



      If I restart resolved with systemctl restart systemd-resolved then resolvectl still shows these bogus IPs as valid name servers.



      They are listed in /etc/resolv.conf so if I delete them there and restart systemd-resolved it just adds the bogus IPs back in again.



      If I look in the logs with journalctl --unit=systemd-resolved then it tells me the bogus IPs are operating in "degraded feature mode" but doesn't tell me where it found those IPs to begin with.



      Where is it picking up these wrong IP addresses from?? Is there some cache file I need to delete to make it go back to only using the IPs supplied from the IPv6 router advertisements only?







      ipv6 systemd-resolved






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      MalvineousMalvineous

      2,16512135




      2,16512135






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You may use this command: sudo systemd-resolve --flush-caches



          To verify that flush was sucessfull, use: sudo systemd-resolve --statistics



          Sample output:



          Cache
          Current Cache Size: 0
          Cache Hits: 101
          Cache Misses: 256


          Answer taken from https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04 and reproduced here.



          Google keywords used to find that page:



          systemd-resolved flush cache



          First result.





          share
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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/3.0/"u003ecc by-sa 3.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%2funix.stackexchange.com%2fquestions%2f515154%2fhow-do-you-remove-bad-dns-server-ips-from-systemd-resolved%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You may use this command: sudo systemd-resolve --flush-caches



            To verify that flush was sucessfull, use: sudo systemd-resolve --statistics



            Sample output:



            Cache
            Current Cache Size: 0
            Cache Hits: 101
            Cache Misses: 256


            Answer taken from https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04 and reproduced here.



            Google keywords used to find that page:



            systemd-resolved flush cache



            First result.





            share




























              0














              You may use this command: sudo systemd-resolve --flush-caches



              To verify that flush was sucessfull, use: sudo systemd-resolve --statistics



              Sample output:



              Cache
              Current Cache Size: 0
              Cache Hits: 101
              Cache Misses: 256


              Answer taken from https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04 and reproduced here.



              Google keywords used to find that page:



              systemd-resolved flush cache



              First result.





              share


























                0












                0








                0







                You may use this command: sudo systemd-resolve --flush-caches



                To verify that flush was sucessfull, use: sudo systemd-resolve --statistics



                Sample output:



                Cache
                Current Cache Size: 0
                Cache Hits: 101
                Cache Misses: 256


                Answer taken from https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04 and reproduced here.



                Google keywords used to find that page:



                systemd-resolved flush cache



                First result.





                share













                You may use this command: sudo systemd-resolve --flush-caches



                To verify that flush was sucessfull, use: sudo systemd-resolve --statistics



                Sample output:



                Cache
                Current Cache Size: 0
                Cache Hits: 101
                Cache Misses: 256


                Answer taken from https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04 and reproduced here.



                Google keywords used to find that page:



                systemd-resolved flush cache



                First result.






                share











                share


                share










                answered 4 mins ago









                thecarpythecarpy

                2,7001028




                2,7001028






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f515154%2fhow-do-you-remove-bad-dns-server-ips-from-systemd-resolved%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m