[GH-ISSUE #164] Templates with emtpy records name unusable due to "API Error 422: DNS Name '' is not canonical" #106

Closed
opened 2026-02-28 01:21:01 +03:00 by kerem · 1 comment
Owner

Originally created by @NuxRo on GitHub (Jan 30, 2018).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/164

Hi,

The template does not work, Nsedit 1.1, Pdns 4.0.3.
In the browser I get "API Error 422: DNS Name '' is not canonical".
If instead of name => ';, I put an actual value such as "www.whatever.com." then it works.
Any way we can refer to the domain somehow, like @ (BIND style) etc?

I have tried the solution mentioned in https://github.com/tuxis-ie/nsedit/issues/142 by @bajizs and that fixes it. Worth checking out.

The canonical thing is a big PITA btw.

$templates[] = array(
'name' => 'Tuxis',
'owner' => 'public', # Set to 'public' to make it available to all users
'records' => array(
array(
'name' => '',
'type' => 'MX',
'content' => '200 mx2.tuxis.nl.')
)
);

Originally created by @NuxRo on GitHub (Jan 30, 2018). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/164 Hi, The template does not work, Nsedit 1.1, Pdns 4.0.3. In the browser I get "API Error 422: DNS Name '' is not canonical". If instead of name => ';, I put an actual value such as "www.whatever.com." then it works. Any way we can refer to the domain somehow, like @ (BIND style) etc? I have tried the solution mentioned in https://github.com/tuxis-ie/nsedit/issues/142 by @bajizs and that fixes it. Worth checking out. The canonical thing is a big PITA btw. $templates[] = array( 'name' => 'Tuxis', 'owner' => 'public', # Set to 'public' to make it available to all users 'records' => array( array( 'name' => '', 'type' => 'MX', 'content' => '200 mx2.tuxis.nl.') ) );
kerem closed this issue 2026-02-28 01:21:01 +03:00
Author
Owner

@tuxis-ie commented on GitHub (Aug 22, 2018):

The issue is with content, not name, I think. I fixed the example in config.inc.php-dist.

<!-- gh-comment-id:415068537 --> @tuxis-ie commented on GitHub (Aug 22, 2018): The issue is with content, not name, I think. I fixed the example in config.inc.php-dist.
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#106
No description provided.