Browse Source

zones: use cloudflare's resolver

Signed-off-by: Alejandro Mery <amery@jpi.io>
pull/1/head
Alejandro Mery 1 year ago
parent
commit
7cf3ee04f5
  1. 4
      pkg/zones/zones.go

4
pkg/zones/zones.go

@ -49,9 +49,11 @@ func (m *Zones) ForEachZone(fn func(*Zone)) {
// NewFS builds a [Zones] tree using the given directory
func NewFS(dir fs.FS, domain string) (*Zones, error) {
lockuper := resolver.NewCloudflareLookuper()
z := &Zones{
dir: dir,
resolver: resolver.SystemResolver(true),
resolver: resolver.NewResolver(lockuper),
domain: domain,
}

Loading…
Cancel
Save