go-mockdns icon indicating copy to clipboard operation
go-mockdns copied to clipboard

Boilerplate for testing of code involving DNS lookups, including unholy hacks to redirect net.Lookup* calls.

Results 7 go-mockdns issues
Sort by recently updated
recently updated
newest added

Thanks for the awesome library! It's usage could be more extensive if there are options for `mockdns.NewServer` to specify server listen addresses (TCP/UDP).

Aloha again :wave: We've been seeing a lot of these lately on our windows CI build. It runs without race detector on github actions. ``` panic: runtime error: invalid memory...

bug
invalid

### Changes ![image](https://github.com/foxcpp/go-mockdns/assets/600733/79ff861f-085e-4fe9-89b5-d7d67520f245)

Hi, I'm using library for mocking some particular DNS records in test (because in real application real DNS records exist and don't exist in my laptop). But I stumble upon...

Now uses: * github.com/miekg/dns v1.1.59 * golang.org/x/net v0.26.0

Hi 👋 Nice lib for testing DNS stuff. But documentatron... 😉 As a novice Go hacker it took me hours fiddling around to get my tests work by reading the...

It would be convenient fi there was a way to UnPatch the mock server without risking a race condition. There is no mutex available to sync the unpatch