This is a clone/fork of https://github.com/miekg/dns
Go to file
Miek Gieben 2e4ea2628c Default to non-compression 2012-01-11 20:28:13 +01:00
_examples Cleanup mx.go 2012-01-11 14:23:02 +01:00
.gitignore add gitignore file 2011-09-20 10:21:17 +02:00
LICENSE add TSIG axfr test, still needs work though 2011-07-05 20:52:35 +02:00
Makefile Add label functions and tests 2012-01-10 15:55:52 +01:00
README.markdown update readme and fix spelling mistakes 2011-09-12 10:13:50 +02:00
TODO.markdown Update the todo 2012-01-08 17:35:28 +01:00
client.go Fix the tests, but they now fail 2012-01-11 14:44:54 +01:00
client_test.go Fix the tests, but they now fail 2012-01-11 14:44:54 +01:00
clientconfig.go gofmt 2011-12-09 21:45:57 +01:00
defaults.go Add label functions and tests 2012-01-10 15:55:52 +01:00
dns.go Implement compressible domain names 2012-01-11 11:19:07 +01:00
dns_test.go Fix compression 2012-01-11 16:04:52 +01:00
dnssec.go Add a compression flag to msg struct 2012-01-11 20:26:39 +01:00
dnssec_test.go Fix the test 2012-01-08 15:56:53 +01:00
dnssex.nl.signed Add a testzone 2011-12-14 09:27:53 +01:00
dyn_test.go gofmt 2011-12-09 21:45:57 +01:00
edns.go A Len() to RR interface 2012-01-10 10:43:28 +01:00
keygen.go Fix the reading of private key files 2011-12-16 17:32:15 +01:00
kscan.go Implement escaping 2011-12-18 19:59:01 +01:00
label_test.go Fix the tests 2012-01-11 14:17:09 +01:00
labels.go Remove this function again 2012-01-11 08:51:43 +01:00
msg.go Add a compression flag to msg struct 2012-01-11 20:26:39 +01:00
nsec3.go Add a compression flag to msg struct 2012-01-11 20:26:39 +01:00
nsec3_test.go Make all tests fully qualified 2012-01-08 15:34:42 +01:00
parse_test.go Dont allow the question section to be compressed 2012-01-11 16:16:09 +01:00
rawmsg.go Add RawSetRdlength back in 2012-01-11 16:02:05 +01:00
server.go Fixes the latest weekly 2011-11-02 23:06:54 +01:00
server_test.go Fix the tests for the latest weekly 2011-12-10 20:54:26 +01:00
test.zone.miek.nl.signed Revert "Use larger buffer to speed things up" 2012-01-05 13:24:11 +01:00
tsig.go Add a compression flag to msg struct 2012-01-11 20:26:39 +01:00
types.go Question is compressible IMO 2012-01-11 16:22:58 +01:00
update.go Default to non-compression 2012-01-11 20:28:13 +01:00
xfr.go Fix the tests, but they now fail 2012-01-11 14:44:54 +01:00
zscan.go Remove the Labels() function. 2012-01-08 15:54:33 +01:00
zscan_rr.go Remove the Labels() function. 2012-01-08 15:54:33 +01:00

README.markdown

Alternative (more granular) approach to a DNS library.

Completely usable DNS library. Most widely used Resource Records are supported including DNSSEC types. It follows a lean and mean philosophy. If there is stuff you should know as a DNS programmers there isn't a convenience function for it.

Features:

  • UDP/TCP queries, IPv4 and IPv6;
  • TSIG;
  • EDNS0;
  • AXFR/IXFR;
  • Client and server side programming (mimicking the http package);
  • Asynchronous queries for client and server;
  • RFC 1035 zone file parsing (everything, except multiline records work). non-working ATM.

Sample programs can be found in the _examples directory. They can be build with: make examples (after the dns package has been installed)

Everything else should be present and working. If not, drop me an email.

Have fun!

Miek Gieben - 2010, 2011 - miek@miek.nl

Supported RFCs and features include:

  • 103{4,5} - DNS standard
  • 1982 - Serial Arithmetic
  • 1876 - LOC record (incomplete)
  • 1995 - IXFR
  • 1996 - DNS notify
  • 2136 - DNS Update (dynamic updates)
  • 2181 - RRset definition
  • 2537 - RSAMD5 DNS keys
  • 2065 - DNSSEC (updated in later RFCs)
  • 2671 - EDNS
  • 2782 - SRV
  • 2845 - TSIG
  • 2915 - NAPTR
  • 3110 - RSASHA1 DNS keys
  • 3225 - DO bit (DNSSEC OK)
  • 340{1,2,3} - NAPTR
  • 3597 - Unkown RRs
  • 403{3,4,5} - DNSSEC + validation functions
  • 4255 - SSHFP
  • 4408 - SPF
  • 4509 - SHA256 Hash in DS
  • 4635 - HMAC SHA TSIG
  • 4892 - id.server
  • 5001 - NSID
  • 5155 - NSEC
  • 5933 - GOST
  • 5936 - AXFR
  • xxxx - ECDSA

Loosely based upon:

  • ldns
  • NSD
  • Net::DNS
  • GRONG