nameserver.go: use custom resolver to avoid update delays caused by dns caching
This commit is contained in:
parent
8e86f5992e
commit
204d5eacf6
2 changed files with 25 additions and 5 deletions
2
web.go
2
web.go
|
|
@ -124,7 +124,7 @@ func RequestHandler(cfg *Config) func(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if !requiresRRUpdate(entry, ipaddr) {
|
||||
if !requiresRRUpdate(entry.Recordname, ipaddr, getResolver(entry.Nameserver)) {
|
||||
fmt.Fprintf(w, "nochg %s\n", ipaddr.String())
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue