registry icon indicating copy to clipboard operation
registry copied to clipboard

Not Just NS records for "TLDs"

Open wvro-org opened this issue 5 months ago • 5 comments

Add ability to specify other recods for "tlds" for example now it's not possible to specify for example A record for "tld" .test A record for "tld" .com.test and manually to as write-zone.php then "deletes" other records....

Smhw so smth like this setting in config.php

// Custom Records Configuration
'tld_custom_records' => [
    '.test' => [
        'enabled' => true,
        'records' => [
            'A' => '0.0.0.0',
            'TXT' => 'test',
            'MX' => 'mx.example.com'
        ]
    ],
    '.com.test' => [
        'enabled' => true,
        'records' => [
            'A' => '0.0.0.0',
            'TXT' => 'test',
            'MX' => 'mx.example.com'
        ]
    ],
],

and write-zone.php should support these
Constants for supported record types

const RECORD_TYPES = [ 'A' => 'A', 'AAAA' => 'AAAA', 'MX' => 'MX', 'NS' => 'NS', 'PTR' => 'PTR', 'SOA' => 'SOA', 'TXT' => 'TXT', 'SRV' => 'SRV', 'CNAME' => 'CNAME', 'CAA' => 'CAA', 'DNSKEY' => 'DNSKEY', 'DS' => 'DS', 'NSEC' => 'NSEC', 'NSEC3' => 'NSEC3', 'RRSIG' => 'RRSIG', 'SPF' => 'SPF', 'SSHFP' => 'SSHFP', 'TLSA' => 'TLSA', 'URI' => 'URI', 'LOC' => 'LOC', ];

// Constants for supported record types

wvro-org avatar Sep 21 '24 20:09 wvro-org