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

make sure key/value grouping always uses fqdn

This commit is contained in:
Craig Peterson
2018-09-07 13:46:44 -04:00
parent 734170013c
commit d006f62f8f
5 changed files with 10 additions and 9 deletions

View File

@@ -240,8 +240,8 @@ func (rc *RecordConfig) ToRR() dns.RR {
// RecordKey represents a resource record in a format used by some systems.
type RecordKey struct {
Name string
Type string
NameFQDN string
Type string
}
// Key converts a RecordConfig into a RecordKey.
@@ -254,7 +254,7 @@ func (rc *RecordConfig) Key() RecordKey {
t = fmt.Sprintf("%s_%s", t, v)
}
}
return RecordKey{rc.Name, t}
return RecordKey{rc.NameFQDN, t}
}
// Records is a list of *RecordConfig.