all: rewrites

This commit is contained in:
Dimitry Kolyshev
2022-12-05 14:37:55 +02:00
parent 01652e6ab2
commit 6b607e982b
6 changed files with 65 additions and 720 deletions

View File

@@ -11,11 +11,11 @@ import (
// Item is a single DNS rewrite record.
type Item struct {
// Domain is the domain pattern for which this rewrite should work.
Domain string `yaml:"domain"`
Domain string `yaml:"domain" json:"domain"`
// Answer is the IP address, canonical name, or one of the special
// values: "A" or "AAAA".
Answer string `yaml:"answer"`
Answer string `yaml:"answer" json:"answer"`
}
// equal returns true if rw is equal to other.