[GH-ISSUE #15] Template with NS RRset #6

Closed
opened 2026-02-28 01:20:31 +03:00 by kerem · 2 comments
Owner

Originally created by @jpmens on GitHub (Jan 23, 2015).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/15

I can add an NS RRSet to a template which is used when creating a zone, but the pre-populated NS records from config.inc (primaryns and secondaryns) cannot be removed; attempting to do so gives an error "Require nameservers".

It would be useful to either allow clearing the two predefine NS or, even better, check if a template has NS and use only those.

Originally created by @jpmens on GitHub (Jan 23, 2015). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/15 I can add an NS RRSet to a template which is used when creating a zone, but the pre-populated NS records from `config.inc` (`primaryns` and `secondaryns`) cannot be removed; attempting to do so gives an error `"Require nameservers"`. It would be useful to either allow clearing the two predefine NS or, even better, check if a template has NS and use only those.
kerem 2026-02-28 01:20:31 +03:00
Author
Owner

@jpmens commented on GitHub (Feb 25, 2015):

Very nice. Small detail: when selecting a template (I have one with 4 NS here), the field for "Pri" is updated from template, but the field for "Sec." isn't. This results in the zone proper getting the "Sec" name server in addition to those defined in the template.

<!-- gh-comment-id:75977584 --> @jpmens commented on GitHub (Feb 25, 2015): Very nice. Small detail: when selecting a template (I have one with 4 NS here), the field for "Pri" is updated from template, but the field for "Sec." isn't. This results in the zone proper getting the "Sec" name server in _addition_ to those defined in the template.
Author
Owner

@jpmens commented on GitHub (Feb 25, 2015):

The template I used:

$templates[] = array(
    'name' => 'Tele',
    'owner' => 'jp', # Set to 'public' to make it available to all users
    'records' => array(
        array(
            'name'      => '',
            'type'      => 'SOA',
            'content'   => 'h.jpmens.net jp.jpmens.org 1 1800 900 604800 86400',
            ),
        array(
            'name'      => '',
            'type'      => 'NS',
            'content'   => 'ns01.tele.aa',
            ),
        array(
            'name'      => '',
            'type'      => 'NS',
            'content'   => 'ns02.tele.aa',
            ),
        array(
            'name'      => '',
            'type'      => 'NS',
            'content'   => 'ns03.tele.aa',
            ),
        array(
            'name'      => '',
            'type'      => 'NS',
            'content'   => 'ns04.tele.aa',
            ),
    )
);
<!-- gh-comment-id:75977773 --> @jpmens commented on GitHub (Feb 25, 2015): The template I used: ``` php $templates[] = array( 'name' => 'Tele', 'owner' => 'jp', # Set to 'public' to make it available to all users 'records' => array( array( 'name' => '', 'type' => 'SOA', 'content' => 'h.jpmens.net jp.jpmens.org 1 1800 900 604800 86400', ), array( 'name' => '', 'type' => 'NS', 'content' => 'ns01.tele.aa', ), array( 'name' => '', 'type' => 'NS', 'content' => 'ns02.tele.aa', ), array( 'name' => '', 'type' => 'NS', 'content' => 'ns03.tele.aa', ), array( 'name' => '', 'type' => 'NS', 'content' => 'ns04.tele.aa', ), ) ); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsedit#6
No description provided.