Problem using DNS TCP query on service does not support IPv6How do I configure IPv4 connection to use a DNS accessible only over IPv6?Ubuntu 14.04 - Network problems (wireless and DNS)DNS not resolving Seattle University network16.10 fail to resolve DNSIPv6 Problem with DNSMAAS node unable to resolve it's own hostnameUbuntu 16.04 LTS: Unable to resolve/ping hostnameDNS unable to resolve certain specific hostnames (eg fortune.com) Ubuntu 17.04BIND server won't resolve names on LAN¿How to use systemd-resolve instead of connman as DNS proxy?

Optimizing code to use less Flash Memory and SRAM

Should I have one hand on the throttle during engine ignition?

Should I have shared a document with a former employee?

How does mathematics work?

How does the Gameboy's memory bank switching work?

Found old paper shares of Motorola Inc that has since been broken up

Linearize or approximate a square root constraint

What is the simplest instruction set that has a C++/C compiler to write an emulator for?

"This used to be my phone number"

Soft constraints and hard constraints

Should I work for free if client's requirement changed

why neutral does not shock. how can a neutral be neutral in ac current?

Host telling me to cancel my booking in exchange for a discount?

Is it possible to have a career in SciComp without contributing to arms research?

When we are talking about black hole evaporation - what exactly happens?

Why do we need an estimator to be consistent?

Could a US citizen born through "birth tourism" become President?

Why does airflow separate from the wing during stall?

Making an example from 'Clean Code' more functional

Do Indians need a separate Hong Kong visa if we already have a Chinese visa?

Linux ext4 restore file and directory access rights after bad backup/restore

Table Formatting Suggestion

Are there any satellites in geosynchronous but not geostationary orbits?

Why didn't Balak request Bilam to bless his own people?



Problem using DNS TCP query on service does not support IPv6


How do I configure IPv4 connection to use a DNS accessible only over IPv6?Ubuntu 14.04 - Network problems (wireless and DNS)DNS not resolving Seattle University network16.10 fail to resolve DNSIPv6 Problem with DNSMAAS node unable to resolve it's own hostnameUbuntu 16.04 LTS: Unable to resolve/ping hostnameDNS unable to resolve certain specific hostnames (eg fortune.com) Ubuntu 17.04BIND server won't resolve names on LAN¿How to use systemd-resolve instead of connman as DNS proxy?






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








0















  • Symptom

    After adding "options use-vc" in /etc/resolv.conf, tools like wget/curl cannot resolve hostname any more. Dig/nslookup works. And if change the nameserver to 1.1.1.1, or 8.8.8.8, all work.

  • Research

    After TCPDump with the cross matrix of wget/nslookup/myDNS/1.1.1.1. I found that:

    1. wget makes both IPv4 and IPv6 queries in one request; nslookup only makes IPv4.

    2. 1.1.1.1 returns both IPv4 and IPv6 (resolve to CNAME, not IPv6 address) answer in one response; My DNS returns only IPv4.

    3. A testing code calling getaddrinfo works the same way as wget.


  • Conclusion

    With TCP DNS, glibc keeps asking in both IPv4 and IPv6, if the answer contains no IPv6, it fails.

Question: Is this by design? Why?



OS: Newly installed Ubuntu bionic LTS.










share|improve this question






























    0















    • Symptom

      After adding "options use-vc" in /etc/resolv.conf, tools like wget/curl cannot resolve hostname any more. Dig/nslookup works. And if change the nameserver to 1.1.1.1, or 8.8.8.8, all work.

    • Research

      After TCPDump with the cross matrix of wget/nslookup/myDNS/1.1.1.1. I found that:

      1. wget makes both IPv4 and IPv6 queries in one request; nslookup only makes IPv4.

      2. 1.1.1.1 returns both IPv4 and IPv6 (resolve to CNAME, not IPv6 address) answer in one response; My DNS returns only IPv4.

      3. A testing code calling getaddrinfo works the same way as wget.


    • Conclusion

      With TCP DNS, glibc keeps asking in both IPv4 and IPv6, if the answer contains no IPv6, it fails.

    Question: Is this by design? Why?



    OS: Newly installed Ubuntu bionic LTS.










    share|improve this question


























      0












      0








      0








      • Symptom

        After adding "options use-vc" in /etc/resolv.conf, tools like wget/curl cannot resolve hostname any more. Dig/nslookup works. And if change the nameserver to 1.1.1.1, or 8.8.8.8, all work.

      • Research

        After TCPDump with the cross matrix of wget/nslookup/myDNS/1.1.1.1. I found that:

        1. wget makes both IPv4 and IPv6 queries in one request; nslookup only makes IPv4.

        2. 1.1.1.1 returns both IPv4 and IPv6 (resolve to CNAME, not IPv6 address) answer in one response; My DNS returns only IPv4.

        3. A testing code calling getaddrinfo works the same way as wget.


      • Conclusion

        With TCP DNS, glibc keeps asking in both IPv4 and IPv6, if the answer contains no IPv6, it fails.

      Question: Is this by design? Why?



      OS: Newly installed Ubuntu bionic LTS.










      share|improve this question
















      • Symptom

        After adding "options use-vc" in /etc/resolv.conf, tools like wget/curl cannot resolve hostname any more. Dig/nslookup works. And if change the nameserver to 1.1.1.1, or 8.8.8.8, all work.

      • Research

        After TCPDump with the cross matrix of wget/nslookup/myDNS/1.1.1.1. I found that:

        1. wget makes both IPv4 and IPv6 queries in one request; nslookup only makes IPv4.

        2. 1.1.1.1 returns both IPv4 and IPv6 (resolve to CNAME, not IPv6 address) answer in one response; My DNS returns only IPv4.

        3. A testing code calling getaddrinfo works the same way as wget.


      • Conclusion

        With TCP DNS, glibc keeps asking in both IPv4 and IPv6, if the answer contains no IPv6, it fails.

      Question: Is this by design? Why?



      OS: Newly installed Ubuntu bionic LTS.







      networking dns bind glibc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 16 at 3:56







      Magicloud

















      asked Apr 15 at 3:54









      MagicloudMagicloud

      2683 silver badges16 bronze badges




      2683 silver badges16 bronze badges




















          0






          active

          oldest

          votes














          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/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%2faskubuntu.com%2fquestions%2f1133955%2fproblem-using-dns-tcp-query-on-service-does-not-support-ipv6%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f1133955%2fproblem-using-dns-tcp-query-on-service-does-not-support-ipv6%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?