mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Update bind docs and Getting Started (#53)
* intitial work for bind refactor * relax requirement that creds.json exists. * Updating bind docs. Fixes #48 * typo * can exclude provider from default set in creds.json * Add bind to integration tests. Fix for IDNs.
This commit is contained in:
@@ -88,12 +88,8 @@ func CreateRegistrars(d *models.DNSConfig, providerConfigs map[string]map[string
|
||||
func CreateDsps(d *models.DNSConfig, providerConfigs map[string]map[string]string) (map[string]DNSServiceProvider, error) {
|
||||
dsps := map[string]DNSServiceProvider{}
|
||||
for _, dsp := range d.DNSProviders {
|
||||
//log.Printf("dsp.Name=%#v\n", dsp.Name)
|
||||
rawMsg, ok := providerConfigs[dsp.Name]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("DNSServiceProvider %s not listed in -providers file", dsp.Name)
|
||||
}
|
||||
provider, err := CreateDNSProvider(dsp.Type, rawMsg, dsp.Metadata)
|
||||
vals := providerConfigs[dsp.Name]
|
||||
provider, err := CreateDNSProvider(dsp.Type, vals, dsp.Metadata)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user