Giter Site home page Giter Site logo

Comments (6)

miekg avatar miekg commented on September 27, 2024

If you implement DNS; you need to implement the entire spec. Either retry with TCP or set an EDNS0 option to allow larger replies.

from terraform-provider-dns.

jaxxstorm avatar jaxxstorm commented on September 27, 2024

@miekg any tips on how to do this?

from terraform-provider-dns.

miekg avatar miekg commented on September 27, 2024

If you have a dns.Client you can set udpsize https://godoc.org/github.com/miekg/dns#Client, but you still need to add an EDNS0 OPT record to the message you're sending https://godoc.org/github.com/miekg/dns#hdr-EDNS0 and https://godoc.org/github.com/miekg/dns#OPT.SetUDPSize

For retrying with TCP, you need to check the return if the msg has Truncated set and retry with dns.Client's Net set to "tcp"

from terraform-provider-dns.

apparentlymart avatar apparentlymart commented on September 27, 2024

Retrying with the EDNS0 option and with TCP were implemented as part of #35.

from terraform-provider-dns.

katbyte avatar katbyte commented on September 27, 2024

Hi @jaxxstorm ,

Just wanted to let you know that we have just released v2.0.0 of the dns provider containing a fix for this issue 🙂

from terraform-provider-dns.

github-actions avatar github-actions commented on September 27, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from terraform-provider-dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.