diff --git a/docs/_providers/bind.md b/docs/_providers/bind.md index 64d2d92bb..1bb24b613 100644 --- a/docs/_providers/bind.md +++ b/docs/_providers/bind.md @@ -46,7 +46,16 @@ var BIND = NewDnsProvider('bind', 'BIND', { }) {% endhighlight %} -## SOA Records +# FYI: get-zones + +When used with "get-zones", specifying "all" scans the directory for +any files named `*.zone` and assumes they are zone files. + +``` +dnscontrol get-zones --format=nameonly - BIND all +``` + +# FYI: SOA Records DNSControl assumes that SOA records are managed by the provider. Most providers simply generate the SOA record for you and do not permit you diff --git a/docs/adding-new-rtypes.md b/docs/adding-new-rtypes.md index 0b6a7f102..b6c89ce23 100644 --- a/docs/adding-new-rtypes.md +++ b/docs/adding-new-rtypes.md @@ -53,6 +53,11 @@ a minimum. * Add the capability to the file `dnscontrol/providers/capabilities.go` (look for `CanUseAlias` and add it to the end of the list.) * Add this feature to the feature matrix in `dnscontrol/build/generate/featureMatrix.go` (Add it to the variable `matrix` then add it later in the file with a `setCap()` statement. +* Add the capability to the list of features that zones are validated + against (i.e. if you want dnscontrol to report an error if this + feature is used with a DNS provider that doesn't support it). That's + in the `checkProviderCapabilities` function in + `pkg/normalize/validate.go`. * Mark the `bind` provider as supporting this record type by updating `dnscontrol/providers/bind/bindProvider.go` (look for `providers.CanUse` and you'll see what to do). ## Step 3: Add a helper function diff --git a/providers/hexonet/records.go b/providers/hexonet/records.go index 22f9e6045..ed3c21870 100644 --- a/providers/hexonet/records.go +++ b/providers/hexonet/records.go @@ -36,7 +36,7 @@ type HXRecord struct { } // GetZoneRecords gets the records of a zone and returns them in RecordConfig format. -func (client *HXClient) GetZoneRecords(domain string) (models.Records, error) { +func (n *HXClient) GetZoneRecords(domain string) (models.Records, error) { return nil, fmt.Errorf("not implemented") // This enables the get-zones subcommand. // Implement this by extracting the code from GetDomainCorrections into