Comments (5)
Ok, so I will implement it this way and submit a PR.
from libdns.
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.
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.
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.
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)
- New Provider: Direct Admin HOT 1
- EasyDNS Provider HOT 1
- DNS UPDATE provider HOT 7
- Clarify what Record.Value contains for TXT records HOT 12
- Mail-In-A-Box provider HOT 4
- litle error in documentation... HOT 2
- Provider: acmeproxy / httpreq HOT 9
- Add 1984 HOT 2
- New Provider Bunny (bunny.net) HOT 1
- New provider: DNS Made Easy HOT 2
- Bump Golang version HOT 3
- How to pass additional configs of record, typically cloudflare's proxied option HOT 1
- New Provider: NearlyFreeSpeech.net HOT 4
- New Provider: do.de HOT 1
- New provider: Dynu HOT 6
- Please add IPv64.net to the libdns
- Infomaniak support HOT 3
- Claiming Hosttech.ch HOT 7
- implemented the tencentcloud provider HOT 2
- Wiki contradicts godoc with regards to thread-safety HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libdns.