nameserver.go: add TODO for enhancing executeQuery

This commit is contained in:
Thomas Preisner 2021-10-16 22:07:40 +02:00
parent 1cfe465cf9
commit 435be076fe

View file

@ -77,6 +77,8 @@ func generateQuery(entry *RRConfig, addr net.IP) string {
} }
func executeQuery(query string) error { func executeQuery(query string) error {
// TODO: use either nsupdate or knsupdate, both should work
// (or don't rely on external tools at all)
cmd := exec.Command("knsupdate", "-v") cmd := exec.Command("knsupdate", "-v")
cmd.Stdin = strings.NewReader(query) cmd.Stdin = strings.NewReader(query)
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()