1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

update some dependencies (#208)

* update some dependencies

* some more

* add these

* remove things?

* regen
This commit is contained in:
Craig Peterson
2017-09-18 15:35:10 -04:00
committed by GitHub
parent ae14b0e790
commit e4ad084494
141 changed files with 3816 additions and 15671 deletions

View File

@ -60,13 +60,15 @@ func (client *Client) DomainDNSSetHosts(
requestInfo.params.Set("SLD", sld)
requestInfo.params.Set("TLD", tld)
for i := range hosts {
requestInfo.params.Set(fmt.Sprintf("HostName%v", i+1), hosts[i].Name)
requestInfo.params.Set(fmt.Sprintf("RecordType%v", i+1), hosts[i].Type)
requestInfo.params.Set(fmt.Sprintf("Address%v", i+1), hosts[i].Address)
requestInfo.params.Set(fmt.Sprintf("MXPref%v", i+1), strconv.Itoa(hosts[i].MXPref))
requestInfo.params.Set(fmt.Sprintf("TTL%v", i+1), strconv.Itoa(hosts[i].TTL))
for i, h := range hosts {
requestInfo.params.Set(fmt.Sprintf("HostName%v", i+1), h.Name)
requestInfo.params.Set(fmt.Sprintf("RecordType%v", i+1), h.Type)
requestInfo.params.Set(fmt.Sprintf("Address%v", i+1), h.Address)
if h.Type == "MX" {
requestInfo.params.Set(fmt.Sprintf("MXPref%v", i+1), strconv.Itoa(h.MXPref))
requestInfo.params.Set("EmailType", "MX")
}
requestInfo.params.Set(fmt.Sprintf("TTL%v", i+1), strconv.Itoa(h.TTL))
}
resp, err := client.do(requestInfo)