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

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region