This is a clone/fork of https://github.com/miekg/dns
Go to file
Miek Gieben 7195ce739c Need to think about naming 2011-08-22 15:35:52 +02:00
_examples Re-use socket for udp 2011-08-10 14:11:53 +02:00
LICENSE add TSIG axfr test, still needs work though 2011-07-05 20:52:35 +02:00
Makefile Add IsQuestion 2011-08-22 12:52:13 +02:00
README.markdown Add IsQuestion 2011-08-22 12:52:13 +02:00
TODO.markdown update the todo 2011-08-09 16:14:47 +02:00
client.go tcp fixes 2011-08-09 15:13:35 +02:00
client_test.go Fix test 2011-08-08 13:21:18 +02:00
clientconfig.go gofmt -w 2011-07-23 23:43:43 +02:00
defaults.go typo 2011-08-22 13:06:34 +02:00
dns.go Remove a packStruct - should improve performance 2011-08-08 15:28:19 +02:00
dns_test.go Remove a packStruct - should improve performance 2011-08-08 15:28:19 +02:00
dnssec.go Error handling 2011-07-24 17:08:33 +02:00
dnssec_test.go Error handling 2011-07-24 17:08:33 +02:00
edns.go normalize errors 2011-03-25 11:19:35 +01:00
keygen.go another nil test 2011-08-08 10:30:28 +02:00
kparse.go Upgrade to r59 of Go this means parsing is broken now 2011-08-02 09:06:15 +02:00
kparse.rl documentation 2011-07-23 23:32:42 +02:00
miek.nl.signed_test cannot handle comments on that spot (yet) miek.nl.signed_test 2011-07-29 16:11:04 +02:00
msg.go Use typeANY, not typeALL 2011-08-22 14:11:41 +02:00
nsec3.go Drop the Alg and Hash prefixes 2011-07-08 17:27:44 +02:00
nsec3_test.go Fix the tests too. They fail now btw; its on the TODO 2011-07-08 17:30:04 +02:00
parse_test.go Tests fails, but dont crash 2011-08-08 10:33:50 +02:00
qnamestring.go added 2011-07-31 09:14:54 +02:00
rawmsg.go re-add qperf 2011-08-08 16:29:13 +02:00
server.go move zoneMatch to dns.go 2011-07-31 09:53:54 +02:00
server_test.go gofmt -w 2011-07-23 23:43:43 +02:00
tsig.go documentation 2011-07-23 23:32:42 +02:00
types.go Add actual type any as RR_ANY 2011-08-22 14:13:43 +02:00
types.rl Fix Pop() 2011-07-29 13:16:27 +02:00
update.go Need to think about naming 2011-08-22 15:35:52 +02:00
xfr.go remove config.go 2011-04-18 22:08:12 +02:00
zone.go Play with compression-like zone structures 2011-08-09 15:56:00 +02:00
zparse.go Upgrade to r59 of Go this means parsing is broken now 2011-08-02 09:06:15 +02:00
zparse.rl Use *Zone instead of Zone 2011-07-29 21:37:58 +02: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.

Feaures:

  • UDP/TCP queries, IPv4 and IPv6
  • TSIG
  • EDNS0 (see edns.go)
  • AXFR (and IXFR probably)
  • Client and server side programming (mimicking the http package)
  • Asynchronous queries (client/server)
  • RFC 1035 zone file parsing (everything, except multiline records work)

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
  • 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