Go package for caching DNS lookup results in memory.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
CHANGELOG.md
CODEOWNERS
LICENSE
README.md
dnscache.go
dnscache_test.go
doc.go
net.go
net_example_test.go
net_test.go

README.md

go-dnscache Go Documentation CircleCI (all branches) Codecov

go-dnscache is a Go package for caching DNS lookup results in memory. It asynchronously lookups DNS and refresh results. The main motivation of this package is to avoid too much DNS lookups for every requests (DNS lookup sometimes makes request really slow and causes error). This can be mainly used for the targets which are running on non-dynamic environment where IP does not change often.

Install

Use go get:

$ go get -u go.mercari.io/go-dnscache

Usage

All usage are described in GoDoc.