{"id":13396836,"url":"https://github.com/miekg/dns","last_synced_at":"2025-09-09T21:14:47.125Z","repository":{"id":37396558,"uuid":"815644","full_name":"miekg/dns","owner":"miekg","description":"DNS library in Go","archived":false,"fork":false,"pushed_at":"2025-04-23T17:55:41.000Z","size":16443,"stargazers_count":8314,"open_issues_count":7,"forks_count":1159,"subscribers_count":179,"default_branch":"master","last_synced_at":"2025-05-03T06:46:35.100Z","etag":null,"topics":["dns","dns-library","dnssec","go"],"latest_commit_sha":null,"homepage":"https://miek.nl/2014/august/16/go-dns-package","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miekg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-08-03T21:56:23.000Z","updated_at":"2025-05-02T13:05:05.000Z","dependencies_parsed_at":"2023-11-06T07:33:38.813Z","dependency_job_id":"7d4a2d3c-f31b-4cb4-a1a1-c964b6d1f00f","html_url":"https://github.com/miekg/dns","commit_stats":{"total_commits":3897,"total_committers":260,"mean_commits":"14.988461538461538","dds":"0.20220682576340776","last_synced_commit":"b77d1ed8e9282cadf21c4124f53a660fed55c8ca"},"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miekg%2Fdns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miekg%2Fdns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miekg%2Fdns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miekg%2Fdns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miekg","download_url":"https://codeload.github.com/miekg/dns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522256,"owners_count":21761698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","dns-library","dnssec","go"],"created_at":"2024-07-30T18:01:04.121Z","updated_at":"2025-09-09T21:14:47.112Z","avatar_url":"https://github.com/miekg.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/miekg/dns.svg?branch=master)](https://travis-ci.org/miekg/dns)\n[![Code Coverage](https://img.shields.io/codecov/c/github/miekg/dns/master.svg)](https://codecov.io/github/miekg/dns?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/miekg/dns)](https://goreportcard.com/report/miekg/dns)\n[![](https://godoc.org/github.com/miekg/dns?status.svg)](https://godoc.org/github.com/miekg/dns)\n\nDNS version 2 is now available at \u003chttps://codeberg.org/miekg/dns\u003e, check it out if you want to\nhelp shape the next 15 years of the Go DNS package.\n\nThe version here will see no new features and less and less development.\n\n# Alternative (more granular) approach to a DNS library\n\n\u003e Less is more.\n\nComplete and usable DNS library. All Resource Records are supported, including the DNSSEC types.\nIt follows a lean and mean philosophy. If there is stuff you should know as a DNS programmer there\nisn't a convenience function for it. Server side and client side programming is supported, i.e. you\ncan build servers and resolvers with it.\n\nWe try to keep the \"master\" branch as sane as possible and at the bleeding edge of standards,\navoiding breaking changes wherever reasonable. We support the last two versions of Go.\n\n# Goals\n\n- KISS;\n- Fast;\n- Small API. If it's easy to code in Go, don't make a function for it.\n\n# Users\n\nA not-so-up-to-date-list-that-may-be-actually-current:\n\n- https://github.com/coredns/coredns\n- https://github.com/abh/geodns\n- https://github.com/baidu/bfe\n- http://www.statdns.com/\n- http://www.dnsinspect.com/\n- https://github.com/chuangbo/jianbing-dictionary-dns\n- http://www.dns-lg.com/\n- https://github.com/fcambus/rrda\n- https://github.com/kenshinx/godns\n- https://github.com/skynetservices/skydns\n- https://github.com/hashicorp/consul\n- https://github.com/DevelopersPL/godnsagent\n- https://github.com/duedil-ltd/discodns\n- https://github.com/StalkR/dns-reverse-proxy\n- https://github.com/tianon/rawdns\n- https://mesosphere.github.io/mesos-dns/\n- https://github.com/fcambus/statzone\n- https://github.com/benschw/dns-clb-go\n- https://github.com/corny/dnscheck for \u003chttp://public-dns.info/\u003e\n- https://github.com/miekg/unbound\n- https://github.com/miekg/exdns\n- https://dnslookup.org\n- https://github.com/looterz/grimd\n- https://github.com/phamhongviet/serf-dns\n- https://github.com/mehrdadrad/mylg\n- https://github.com/bamarni/dockness\n- https://github.com/fffaraz/microdns\n- https://github.com/ipdcode/hades \u003chttps://jd.com\u003e\n- https://github.com/StackExchange/dnscontrol/\n- https://www.dnsperf.com/\n- https://dnssectest.net/\n- https://github.com/oif/apex\n- https://github.com/jedisct1/dnscrypt-proxy\n- https://github.com/jedisct1/rpdns\n- https://github.com/xor-gate/sshfp\n- https://github.com/rs/dnstrace\n- https://blitiri.com.ar/p/dnss ([github mirror](https://github.com/albertito/dnss))\n- https://render.com\n- https://github.com/peterzen/goresolver\n- https://github.com/folbricht/routedns\n- https://domainr.com/\n- https://zonedb.org/\n- https://router7.org/\n- https://github.com/fortio/dnsping\n- https://github.com/Luzilla/dnsbl_exporter\n- https://github.com/bodgit/tsig\n- https://github.com/v2fly/v2ray-core (test only)\n- https://kuma.io/\n- https://www.misaka.io/services/dns\n- https://ping.sx/dig\n- https://fleetdeck.io/\n- https://github.com/markdingo/autoreverse\n- https://github.com/slackhq/nebula\n- https://addr.tools/\n- https://dnscheck.tools/\n- https://github.com/egbakou/domainverifier\n- https://github.com/semihalev/sdns\n- https://github.com/wintbiit/NineDNS\n- https://linuxcontainers.org/incus/\n- https://ifconfig.es\n- https://github.com/zmap/zdns\n- https://framagit.org/bortzmeyer/check-soa\n\nSend pull request if you want to be listed here.\n\n# Features\n\n- UDP/TCP queries, IPv4 and IPv6\n- RFC 1035 zone file parsing ($INCLUDE, $ORIGIN, $TTL and $GENERATE (for all record types) are supported\n- Fast\n- Server side programming (mimicking the net/http package)\n- Client side programming\n- DNSSEC: signing, validating and key generation for DSA, RSA, ECDSA and Ed25519\n- EDNS0, NSID, Cookies\n- AXFR/IXFR\n- TSIG, SIG(0)\n- DNS over TLS (DoT): encrypted connection between client and server over TCP\n- DNS name compression\n\nHave fun!\n\nMiek Gieben - 2010-2012 - \u003cmiek@miek.nl\u003e\nDNS Authors 2012-\n\n# Building\n\nThis library uses Go modules and uses semantic versioning. Building is done with the `go` tool, so\nthe following should work:\n\n    go get github.com/miekg/dns\n    go build github.com/miekg/dns\n\n## Examples\n\nA short \"how to use the API\" is at the beginning of doc.go (this also will show when you call `godoc\ngithub.com/miekg/dns`).\n\nExample programs can be found in the `github.com/miekg/exdns` repository.\n\n## Supported RFCs\n\n_all of them_\n\n- 103{4,5} - DNS standard\n- 1183 - ISDN, X25 and other deprecated records\n- 1348 - NSAP record (removed the record)\n- 1982 - Serial Arithmetic\n- 1876 - LOC record\n- 1995 - IXFR\n- 1996 - DNS notify\n- 2136 - DNS Update (dynamic updates)\n- 2181 - RRset definition - there is no RRset type though, just []RR\n- 2537 - RSAMD5 DNS keys\n- 2065 - DNSSEC (updated in later RFCs)\n- 2671 - EDNS record\n- 2782 - SRV record\n- 2845 - TSIG record\n- 2915 - NAPTR record\n- 2929 - DNS IANA Considerations\n- 3110 - RSASHA1 DNS keys\n- 3123 - APL record\n- 3225 - DO bit (DNSSEC OK)\n- 340{1,2,3} - NAPTR record\n- 3445 - Limiting the scope of (DNS)KEY\n- 3596 - AAAA record\n- 3597 - Unknown RRs\n- 4025 - A Method for Storing IPsec Keying Material in DNS\n- 403{3,4,5} - DNSSEC + validation functions\n- 4255 - SSHFP record\n- 4343 - Case insensitivity\n- 4408 - SPF record\n- 4509 - SHA256 Hash in DS\n- 4592 - Wildcards in the DNS\n- 4635 - HMAC SHA TSIG\n- 4701 - DHCID\n- 4892 - id.server\n- 5001 - NSID\n- 5155 - NSEC3 record\n- 5205 - HIP record\n- 5702 - SHA2 in the DNS\n- 5936 - AXFR\n- 5966 - TCP implementation recommendations\n- 6605 - ECDSA\n- 6725 - IANA Registry Update\n- 6742 - ILNP DNS\n- 6840 - Clarifications and Implementation Notes for DNS Security\n- 6844 - CAA record\n- 6891 - EDNS0 update\n- 6895 - DNS IANA considerations\n- 6944 - DNSSEC DNSKEY Algorithm Status\n- 6975 - Algorithm Understanding in DNSSEC\n- 7043 - EUI48/EUI64 records\n- 7314 - DNS (EDNS) EXPIRE Option\n- 7477 - CSYNC RR\n- 7828 - edns-tcp-keepalive EDNS0 Option\n- 7553 - URI record\n- 7858 - DNS over TLS: Initiation and Performance Considerations\n- 7871 - EDNS0 Client Subnet\n- 7873 - Domain Name System (DNS) Cookies\n- 8080 - EdDSA for DNSSEC\n- 8490 - DNS Stateful Operations\n- 8499 - DNS Terminology\n- 8659 - DNS Certification Authority Authorization (CAA) Resource Record\n- 8777 - DNS Reverse IP Automatic Multicast Tunneling (AMT) Discovery\n- 8914 - Extended DNS Errors\n- 8976 - Message Digest for DNS Zones (ZONEMD RR)\n- 9460 - Service Binding and Parameter Specification via the DNS\n- 9461 - Service Binding Mapping for DNS Servers\n- 9462 - Discovery of Designated Resolvers\n- 9460 - SVCB and HTTPS Records\n- 9567 - DNS Error Reporting\n- 9606 - DNS Resolver Information\n- Draft - Compact Denial of Existence in DNSSEC\n\n## Loosely Based Upon\n\n- ldns - \u003chttps://nlnetlabs.nl/projects/ldns/about/\u003e\n- NSD - \u003chttps://nlnetlabs.nl/projects/nsd/about/\u003e\n- Net::DNS - \u003chttp://www.net-dns.org/\u003e\n- GRONG - \u003chttps://github.com/bortzmeyer/grong\u003e\n","funding_links":[],"categories":["Library","Networking","Misc","开源类库","Go","网络","Open source library","Relational Databases","\u003cspan id=\"网络-networking\"\u003e网络 Networking\u003c/span\u003e","網絡","网络相关库","Programming"],"sub_categories":["Strings","网络","Transliteration","音译","The Internet","Advanced Console UIs","高级控制台界面","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Uncategorized","高級控制台界面","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","交流","Go","暂未分类"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiekg%2Fdns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiekg%2Fdns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiekg%2Fdns/lists"}