Skip to content
Discussion options

You must be logged in to vote

Technically, it isn't possible to have two resource records with the same name and type. However, a resource record can have multiple records. Something like this should work:

        $dns_records = [
            ['name' => '@', 'type' => RecordType::A, 'content' => '127.0.0.80'],
            ['name' => 'www', 'type' => RecordType::A, 'content' => '127.0.0.80'],
            ['name' => '@', 'type' => RecordType::NS, 'content' => ['ns1.example.com.', 'ns2.example.com.']],
        ];

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@huglester
Comment options

Answer selected by robinmulder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #107 on April 19, 2022 07:59.