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

Unknown rtypes should not result in panic (#2775)

This commit is contained in:
Tom Limoncelli
2024-01-08 11:58:21 -05:00
committed by GitHub
parent 6a8561fbe7
commit ce454c3e51
6 changed files with 34 additions and 4 deletions

View File

@@ -137,6 +137,9 @@ func (z *ZoneGenData) generateZoneFileHelper(w io.Writer) error {
// type
typeStr := rr.Type
if rr.Type == "UNKNOWN" {
typeStr = rr.UnknownTypeName
}
// the remaining line
target := rr.GetTargetCombinedFunc(txtutil.EncodeQuoted)