mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CSCGLOBAL: Support TXT records that are long or include double-quotes (#1631)
* Remove TXT restrictions around length * Improve get-zones "js" format. New: ``` $ dnscontrol get-zone --format js providercredkey - stackoverflow.co.il var DSP_PROVIDERCREDKEY = NewDnsProvider("providercredkey"); var REG_CHANGEME = NewRegistrar("none"); D("stackoverflow.co.il", REG_CHANGEME, DnsProvider(DSP_PROVIDERCREDKEY), DefaultTTL(14400), A('www', '165.160.15.20'), ... ... ... ... //NAMESERVER('dns1.cscdns.net.'), //NAMESERVER('dns2.cscdns.net.') ) ``` * Update test data
This commit is contained in:
@ -16,13 +16,13 @@ func AuditRecords(records []*models.RecordConfig) error {
|
||||
// Each test should document the last time we verified the test was
|
||||
// still needed. Sometimes companies change their API.
|
||||
|
||||
if err := recordaudit.TxtNoDoubleQuotes(records); err != nil {
|
||||
return err
|
||||
} // Needed as of 2022-06-10
|
||||
// if err := recordaudit.TxtNoDoubleQuotes(records); err != nil {
|
||||
// return err
|
||||
// } // Needed as of 2022-06-10
|
||||
|
||||
if err := recordaudit.TxtNoStringsLen256orLonger(records); err != nil {
|
||||
return err
|
||||
} // Needed as of 2022-06-10
|
||||
// if err := recordaudit.TxtNoStringsLen256orLonger(records); err != nil {
|
||||
// return err
|
||||
// } // Needed as of 2022-06-10
|
||||
|
||||
if err := recordaudit.TxtNoMultipleStrings(records); err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user