Skip to content

tulir/go-customresolver

Repository files navigation

go-customresolver

go-customresolver provides a hacky middleware that can be used to override what net.Resolver returns. It's useful for things like filtering out IP addresses to prevent server-side request forgery when making HTTP requests with untrusted input.

Only A/AAAA records are currently supported. In other words, LookupAddr, LookupHost, LookupIP and LookupIPAddr should work, but other Resolver methods won't.

Installation & docs

go get go.mau.fi/customresolver

https://pkg.go.dev/go.mau.fi/customresolver

About

A hack to allow customizing Go's net.Resolver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages