dnslink-std / go Goto Github PK
View Code? Open in Web Editor NEWThe reference implementation for DNSLink in golang.
License: Other
The reference implementation for DNSLink in golang.
License: Other
dnslink --help
prints (among others) these examples:
# Receive the dnslink entries for the dnslink.io domain.
> dnslink dnslink.dev
/ipfs/QmXNosdfz3WQUHncsYBTw7diwYzCibVhrJmEhNNaMPQBQF
and
# Receive the dnslink entries using the system DNS.
> dnslink --dns dnslink.dev
/ipfs/QmXNosdfz3WQUHncsYBTw7diwYzCibVhrJmEhNNaMPQBQF
This leads me to believe that dnslink
does not use the system resolver by default (which I don't like) but specifying --dns
does use the system resolver.
But executing the example dnslink --dns dnslink.dev
just panics:
panic: invalid argument to Intn
goroutine 1 [running]:
math/rand.(*Rand).Intn(0x18?, 0x666a40?)
math/rand/rand.go:180 +0x4c
math/rand.Intn(0xc000020258?)
math/rand/rand.go:453 +0x25
main.main.NewUDPLookup.func1({0xc000020258, 0x14})
github.com/dnslink-std/go/dnslink.go:244 +0x16c
github.com/dnslink-std/go.resolve(0xc0000e1ab0?, {0x7ffeff05e63f?, 0xb?})
github.com/dnslink-std/go/dnslink.go:313 +0x156
github.com/dnslink-std/go.(*Resolver).Resolve(...)
github.com/dnslink-std/go/dnslink.go:86
main.main()
github.com/dnslink-std/go/dnslink/main.go:298 +0x9fa
Maybe not specifying the --dns
option is what actually uses the system resolver and the documentation is just wrong?
Following outstanding tests in dnslink-std/test#7 the library should support ttl
output.
isd "github.com/jbenet/go-is-domain"
See ipfs/kubo#8060 + PRs (ipfs/kubo#8071 & ipfs/go-namesys#13)
Current API implementation only supports sync API, lets add async options as well.
For some reason the CI task to upload binaries uploads all versions to the 0.0.1 release https://github.com/dnslink-std/go/runs/2938385407?check_suite_focus=true#step:4:208
Using https://github.com/libp2p/go-doh-resolver it would be important to add dns-over-https support as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.