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

BIND and prettyzone fixed

This commit is contained in:
Tom Limoncelli
2023-11-12 08:46:23 -05:00
parent 2d4709f501
commit 3c632eabdf
9 changed files with 81 additions and 52 deletions

View File

@@ -13,15 +13,8 @@ If an rType has more than one field, one field goes in .target and the remaining
Not the best design, but we're stuck with it until we re-do RecordConfig, possibly using generics.
*/
// Set debugWarnTxtField to true if you want a warning when
// GetTargetField is called on a TXT record.
// GetTargetField works fine on TXT records for casual output but it
// is often better to access .TxtStrings directly or call
// GetTargetRFC1035Quoted() for nicely quoted text.
var debugWarnTxtField = false
// GetTargetField returns the target. There may be other fields (for example
// an MX record also has a .MxPreference field; they are not included.
// an MX record also has a .MxPreference field) they are not included.
func (rc *RecordConfig) GetTargetField() string {
return rc.target
}