zones: use cloudflare's resolver
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
+3
-1
@@ -49,9 +49,11 @@ func (m *Zones) ForEachZone(fn func(*Zone)) {
|
|||||||
|
|
||||||
// NewFS builds a [Zones] tree using the given directory
|
// NewFS builds a [Zones] tree using the given directory
|
||||||
func NewFS(dir fs.FS, domain string) (*Zones, error) {
|
func NewFS(dir fs.FS, domain string) (*Zones, error) {
|
||||||
|
lockuper := resolver.NewCloudflareLookuper()
|
||||||
|
|
||||||
z := &Zones{
|
z := &Zones{
|
||||||
dir: dir,
|
dir: dir,
|
||||||
resolver: resolver.SystemResolver(true),
|
resolver: resolver.NewResolver(lockuper),
|
||||||
domain: domain,
|
domain: domain,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user