Coder Social home page Coder Social logo

RFC2136 provider about libdns HOT 5 CLOSED

libdns avatar libdns commented on August 14, 2024
RFC2136 provider

from libdns.

Comments (5)

KoHcoJlb avatar KoHcoJlb commented on August 14, 2024 1

Ok, so I will implement it this way and submit a PR.

from libdns.

mholt avatar mholt commented on August 14, 2024

Awesome, thanks for working on that!

Good question. I think a literal representation would be best. In other words, don't interpret the value at all. Don't interpret it as multiple values, just have it as-is. At least, that's my opinion/preference...

Aside: Perhaps we could add a Values() method to Record that could do the parsing as a convenience and return []string if it's a multi-value TXT record?

from libdns.

KoHcoJlb avatar KoHcoJlb commented on August 14, 2024

By as-is do you mean leave it in zone file format?

In fact that's the way I started to implement it when I faced with this confusion which, though seems more logical to me, would require users to quote value if it contains whitespaces. Moreover library which I'm using always quotes value during serialization, which will be the case when querying records from the server.

So I wanted to know what current usage practice is and stick to it.

from libdns.

mholt avatar mholt commented on August 14, 2024

By as-is do you mean leave it in zone file format?

Yeah, I think so. libdns is a pretty low-level library, not really intended to interpret/parse record values. But I'd be OK with helper methods if there is a common need for some of that. But I don't think the low-level methods Add/Set/Delete/Update should do parsing/interpretation.

Anyway, this is a first for this question for libdns, so I'm just spitting out my initial thoughts here. What if we give it a try and then see how it works? We can add a helper method if needed.

from libdns.

mholt avatar mholt commented on August 14, 2024

Thanks! If it turns out too clunky, awkward, or unworkable, we can revise it. But let's start with it this way first and see.

from libdns.

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.