suporte a dynamic dns
This commit is contained in:
@@ -173,6 +173,17 @@ func (c *Client) CreateRRSet(ctx context.Context, zoneID string, rrset RRSet) er
|
||||
}})
|
||||
}
|
||||
|
||||
// ReplaceRRSet replaces an RRset without merging it with existing records.
|
||||
func (c *Client) ReplaceRRSet(ctx context.Context, zoneID string, rrset RRSet) error {
|
||||
return c.patchZone(ctx, zoneID, []changeRRSet{{
|
||||
Name: rrset.Name,
|
||||
Type: rrset.Type,
|
||||
TTL: rrset.TTL,
|
||||
ChangeType: "REPLACE",
|
||||
Records: rrset.Records,
|
||||
}})
|
||||
}
|
||||
|
||||
func allowsMultipleRecords(recordType string) bool {
|
||||
switch strings.ToUpper(strings.TrimSpace(recordType)) {
|
||||
case "A", "AAAA", "CAA", "MX", "NS", "SRV", "TXT":
|
||||
|
||||
Reference in New Issue
Block a user