Debian Codegraph @

README.md

raw symbols SCIP
1 [![Build Status](https://travis-ci.org/miekg/dns.svg?branch=master)](https://travis-ci.org/miekg/dns)
2 [![Code Coverage](https://img.shields.io/codecov/c/github/miekg/dns/master.svg)](https://codecov.io/github/miekg/dns?branch=master)
3 [![Go Report Card](https://goreportcard.com/badge/github.com/miekg/dns)](https://goreportcard.com/report/miekg/dns)
4 [![](https://godoc.org/github.com/miekg/dns?status.svg)](https://godoc.org/github.com/miekg/dns)
5
6 DNS version 2 is now available at <https://codeberg.org/miekg/dns>. This version should be 2x faster across
7 the board. Further optimizations welcome.
8
9 The version here will only see specific fixes and nothing else. At some point this repo will be archived.
10
11 # Alternative (more granular) approach to a DNS library
12
13 > Less is more.
14
15 Complete and usable DNS library. All Resource Records are supported, including the DNSSEC types.
16 It follows a lean and mean philosophy. If there is stuff you should know as a DNS programmer there
17 isn't a convenience function for it. Server side and client side programming is supported, i.e. you
18 can build servers and resolvers with it.
19
20 We try to keep the "master" branch as sane as possible and at the bleeding edge of standards,
21 avoiding breaking changes wherever reasonable. We support the last two versions of Go.
22
23 # Goals
24
25 - KISS;
26 - Fast;
27 - Small API. If it's easy to code in Go, don't make a function for it.
28
29 # Users
30
31 A not-so-up-to-date-list-that-may-be-actually-current:
32
33 - https://github.com/coredns/coredns
34 - https://github.com/abh/geodns
35 - https://github.com/baidu/bfe
36 - http://www.statdns.com/
37 - http://www.dnsinspect.com/
38 - https://github.com/chuangbo/jianbing-dictionary-dns
39 - http://www.dns-lg.com/
40 - https://github.com/fcambus/rrda
41 - https://github.com/kenshinx/godns
42 - https://github.com/skynetservices/skydns
43 - https://github.com/hashicorp/consul
44 - https://github.com/DevelopersPL/godnsagent
45 - https://github.com/duedil-ltd/discodns
46 - https://github.com/StalkR/dns-reverse-proxy
47 - https://github.com/tianon/rawdns
48 - https://mesosphere.github.io/mesos-dns/
49 - https://github.com/fcambus/statzone
50 - https://github.com/benschw/dns-clb-go
51 - https://github.com/corny/dnscheck for <http://public-dns.info/>
52 - https://github.com/miekg/unbound
53 - https://github.com/miekg/exdns
54 - https://dnslookup.org
55 - https://github.com/looterz/grimd
56 - https://github.com/phamhongviet/serf-dns
57 - https://github.com/mehrdadrad/mylg
58 - https://github.com/bamarni/dockness
59 - https://github.com/fffaraz/microdns
60 - https://github.com/ipdcode/hades <https://jd.com>
61 - https://github.com/StackExchange/dnscontrol/
62 - https://www.dnsperf.com/
63 - https://dnssectest.net/
64 - https://github.com/oif/apex
65 - https://github.com/jedisct1/dnscrypt-proxy (migrated to v2)
66 - https://github.com/jedisct1/rpdns
67 - https://github.com/xor-gate/sshfp
68 - https://github.com/rs/dnstrace
69 - https://blitiri.com.ar/p/dnss ([github mirror](https://github.com/albertito/dnss))
70 - https://render.com
71 - https://github.com/peterzen/goresolver
72 - https://github.com/folbricht/routedns
73 - https://domainr.com/
74 - https://zonedb.org/
75 - https://router7.org/
76 - https://github.com/fortio/dnsping
77 - https://github.com/Luzilla/dnsbl_exporter
78 - https://github.com/bodgit/tsig
79 - https://github.com/v2fly/v2ray-core (test only)
80 - https://kuma.io/
81 - https://www.misaka.io/services/dns
82 - https://ping.sx/dig
83 - https://fleetdeck.io/
84 - https://github.com/markdingo/autoreverse
85 - https://github.com/slackhq/nebula
86 - https://addr.tools/
87 - https://dnscheck.tools/
88 - https://github.com/egbakou/domainverifier
89 - https://github.com/semihalev/sdns
90 - https://github.com/wintbiit/NineDNS
91 - https://linuxcontainers.org/incus/
92 - https://ifconfig.es
93 - https://github.com/zmap/zdns
94 - https://framagit.org/bortzmeyer/check-soa
95 - https://github.com/jkerdreux-imt/owns
96
97 Send pull request if you want to be listed here.
98
99 # Features
100
101 - UDP/TCP queries, IPv4 and IPv6
102 - RFC 1035 zone file parsing ($INCLUDE, $ORIGIN, $TTL and $GENERATE (for all record types) are supported
103 - Fast
104 - Server side programming (mimicking the net/http package)
105 - Client side programming
106 - DNSSEC: signing, validating and key generation for DSA, RSA, ECDSA and Ed25519
107 - EDNS0, NSID, Cookies
108 - AXFR/IXFR
109 - TSIG, SIG(0)
110 - DNS over TLS (DoT): encrypted connection between client and server over TCP
111 - DNS name compression
112
113 Have fun!
114
115 Miek Gieben - 2010-2012 - <[email protected]>
116 DNS Authors 2012-
117
118 # Building
119
120 This library uses Go modules and uses semantic versioning. Building is done with the `go` tool, so
121 the following should work:
122
123 go get github.com/miekg/dns
124 go build github.com/miekg/dns
125
126 ## Examples
127
128 A short "how to use the API" is at the beginning of doc.go (this also will show when you call `godoc
129 github.com/miekg/dns`).
130
131 Example programs can be found in the `github.com/miekg/exdns` repository.
132
133 ## Supported RFCs
134
135 _all of them_
136
137 - 103{4,5} - DNS standard
138 - 1183 - ISDN, X25 and other deprecated records
139 - 1348 - NSAP record (removed the record)
140 - 1982 - Serial Arithmetic
141 - 1876 - LOC record
142 - 1995 - IXFR
143 - 1996 - DNS notify
144 - 2136 - DNS Update (dynamic updates)
145 - 2181 - RRset definition - there is no RRset type though, just []RR
146 - 2537 - RSAMD5 DNS keys
147 - 2065 - DNSSEC (updated in later RFCs)
148 - 2671 - EDNS record
149 - 2782 - SRV record
150 - 2845 - TSIG record
151 - 2915 - NAPTR record
152 - 2929 - DNS IANA Considerations
153 - 3110 - RSASHA1 DNS keys
154 - 3123 - APL record
155 - 3225 - DO bit (DNSSEC OK)
156 - 340{1,2,3} - NAPTR record
157 - 3445 - Limiting the scope of (DNS)KEY
158 - 3596 - AAAA record
159 - 3597 - Unknown RRs
160 - 4025 - A Method for Storing IPsec Keying Material in DNS
161 - 403{3,4,5} - DNSSEC + validation functions
162 - 4255 - SSHFP record
163 - 4343 - Case insensitivity
164 - 4408 - SPF record
165 - 4509 - SHA256 Hash in DS
166 - 4592 - Wildcards in the DNS
167 - 4635 - HMAC SHA TSIG
168 - 4701 - DHCID
169 - 4892 - id.server
170 - 5001 - NSID
171 - 5155 - NSEC3 record
172 - 5205 - HIP record
173 - 5702 - SHA2 in the DNS
174 - 5936 - AXFR
175 - 5966 - TCP implementation recommendations
176 - 6605 - ECDSA
177 - 6725 - IANA Registry Update
178 - 6742 - ILNP DNS
179 - 6840 - Clarifications and Implementation Notes for DNS Security
180 - 6844 - CAA record
181 - 6891 - EDNS0 update
182 - 6895 - DNS IANA considerations
183 - 6944 - DNSSEC DNSKEY Algorithm Status
184 - 6975 - Algorithm Understanding in DNSSEC
185 - 7043 - EUI48/EUI64 records
186 - 7314 - DNS (EDNS) EXPIRE Option
187 - 7477 - CSYNC RR
188 - 7828 - edns-tcp-keepalive EDNS0 Option
189 - 7553 - URI record
190 - 7858 - DNS over TLS: Initiation and Performance Considerations
191 - 7871 - EDNS0 Client Subnet
192 - 7873 - Domain Name System (DNS) Cookies
193 - 8080 - EdDSA for DNSSEC
194 - 8490 - DNS Stateful Operations
195 - 8499 - DNS Terminology
196 - 8659 - DNS Certification Authority Authorization (CAA) Resource Record
197 - 8777 - DNS Reverse IP Automatic Multicast Tunneling (AMT) Discovery
198 - 8914 - Extended DNS Errors
199 - 8976 - Message Digest for DNS Zones (ZONEMD RR)
200 - 9460 - Service Binding and Parameter Specification via the DNS
201 - 9461 - Service Binding Mapping for DNS Servers
202 - 9462 - Discovery of Designated Resolvers
203 - 9460 - SVCB and HTTPS Records
204 - 9567 - DNS Error Reporting
205 - 9606 - DNS Resolver Information
206 - 9660 - DNS Zone Version (ZONEVERSION) Option
207 - Draft - Compact Denial of Existence in DNSSEC
208
209 ## Loosely Based Upon
210
211 - ldns - <https://nlnetlabs.nl/projects/ldns/about/>
212 - NSD - <https://nlnetlabs.nl/projects/nsd/about/>
213 - Net::DNS - <http://www.net-dns.org/>
214 - GRONG - <https://github.com/bortzmeyer/grong>