3 ms·
Here's a use case that I am currently doing at home: I have a live weather station [1] that pulls data from a Go-based service that I wrote and run on a server
by chrissnell 8y ago
Here's a use case that I am currently doing at home:
I have a live weather station [1] that pulls data from a Go-based service that I wrote and run on a server on my home network. When I'm outside of the house, mhkweather.com resolves to a Digital Ocean IP, where I run a proxy to forward requests back to home IP. However, when I'm at home, mhkweather.com resolves to a local 10.x.x.x IP and goes straight the the local service, no proxy. It faster this way. I want to be able to set DNS overrides for local things. I can do this with unbound but it would be nice if dnsd could do this for me.
[1] https://mhkweather.com https://mhkweather.com
- secure 8y agoThanks for elaborating. For the time being, you’d need to modify dnsd to install your custom handler. It should be as simple as adding another server.mux.HandleFunc call in internal/dns/dns.go. If this turns out to be a feature which many people would like, I’ll think about how to best structure the code to make this easier.