func cloudflareUpdateDNS(api *cloudflare.API, externalIP IP, zoneID string, recordID string) error {
	recordType, err := getDNSRecordType(externalIP)
	if err != nil {
		return err
	}

	return api.UpdateDNSRecord(zoneID, recordID, cloudflare.DNSRecord{Content: externalIP.String, Type: recordType, TTL: 120})
}
// Updates an existing DNS Record at Cloudflare
Updates an existing DNS Record at Cloudflare
// Updates an existing DNS Record at Cloudflare
func cloudflareUpdateDNS(api *cloudflare.API, externalIP IP, zoneID string, recordID string) error {
	recordType, err := getDNSRecordType(externalIP)
	if err != nil {
		return err
	}
	return api.UpdateDNSRecord(zoneID, recordID, cloudflare.DNSRecord{Content: externalIP.String, Type: recordType, TTL: 120})
}
func cloudflareUpdateDNS ( api * cloudflare . API , externalIP IP , zoneID string , recordID string ) error { recordType , err := getDNSRecordType ( externalIP ) if err != nil { return err } return api . UpdateDNSRecord ( zoneID , recordID , cloudflare . DNSRecord { Content : externalIP . String , Type : recordType , TTL : 120 } ) }
Updates an existing DNS Record at Cloudflare
Updates an existing DNS Record at Cloudflare