dnsimple / dns_erlang Goto Github PK
View Code? Open in Web Editor NEWErlang DNS library.
License: Apache License 2.0
Erlang DNS library.
License: Apache License 2.0
All records have the form key_tag
while DS and CDS records use keytag
as the field name. Should make this consistent.
https://github.com/dnsimple/dns_erlang/blob/master/include/dns_records.hrl#L42-L45
It appears that OTP20 deprecated crypto:sha/1
in favor of crypto:hash/2
when running
make test
I get one failing test
dnssec:54: zone_test_ (Build Zone nsec3rsasha1-example)...*failed*
in function crypto:sha/1
called as sha([<<1,42,1,42,5,119,105,108,100,49,20,110,115,...>>,<<"salt">>])
in call from dnssec:ih/4 (src/dnssec.erl, line 170)
in call from dnssec:'-gen_nsec3/8-fun-0-'/8 (src/dnssec.erl, line 148)
in call from lists:foldl/3 (lists.erl, line 1263)
in call from dnssec:gen_nsec3/8 (src/dnssec.erl, line 145)
in call from dnssec:'-zone_test_/0-fun-6-'/9 (include/dnssec_tests.hrl, line 95)
**error:undef
output:<<"">>
Oddly, it appears that crypto:sha/1
is undefined when it is trying to be accessed:
ih(?DNSSEC_NSEC3_ALG_SHA1, Salt, X, I) -> ih(fun crypto:sha/1, Salt, X, I).
This creates an anonymous function #Fun<crypto.sha.1>
. Then, when we try to execute it
ih(H, Salt, X, 0) when is_function(H, 1) -> H([X, Salt]);
ih(H, Salt, X, I) when is_function(H, 1) -> ih(H, Salt, H([X, Salt]), I - 1);
ih(?DNSSEC_NSEC3_ALG_SHA1, Salt, X, I) -> ih(fun crypto:sha/1, Salt, X, I).
It triggers the undef.
It appears that OTP20 deprecated crypto:sha/1
in favor of crypto:hash/2
The name dns
is already taken in hex. Due to this, the application will need to be renamed.
Any chance the readme could be updated with a bit of documentation? This library seems great but I'm not sure where to start with it :)
The link "Online documentation" on Hex yields 404.
Is it intentional that the define for it is missing?
Given the fingerprint 8544BD5B4902151F80391563A6511FD864489763, the output when queried with dig is 38353434424435423439303231353146383033393135363341363531 314644383634343839373633
Any thoughts on what might be happening here?
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.