[GH-ISSUE #23] How to use experimental api? #10

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

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

Hey All,

Is there a manual for the nsedit experimental api? I would like to use it for managing my dns from an external location, but I can't find any info how to use it.

Originally created by @ronaldjonkers on GitHub (Jan 30, 2015). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/23 Hey All, Is there a manual for the nsedit experimental api? I would like to use it for managing my dns from an external location, but I can't find any info how to use it.
kerem closed this issue 2026-02-28 01:20:32 +03:00
Author
Owner

@tuxis-ie commented on GitHub (Feb 18, 2015):

No, there is no manual yet.

How it currently works:

  • In the configfile, fill the array $adminapiips with the IP's that are allowed to connect
  • In the configfile, create an API-Key in $adminapikey

Here's what I do to create zones from WeFact (PHP):


$nsediturl = 'https://<yourdomain>/nsedit/zones.php?action=create';

    $params = array (
        'adminapikey'   => $nseditkey,
        'name'      => $domtoadd,
        'kind'      => 'Master',
        'nameserver1'   => $dominfo['domain']['DNS1'],
        'nameserver2'   => $dominfo['domain']['DNS2'],
        'owner'     => $owner,
        'template'  => 'Tuxis' );

    $nsedit = curl_init();
    curl_setopt($nsedit,CURLOPT_URL, $nsediturl);
    curl_setopt($nsedit, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($nsedit, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($nsedit, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($nsedit, CURLOPT_TIMEOUT,'10');
    curl_setopt($nsedit, CURLOPT_POST, 1);
    curl_setopt($nsedit, CURLOPT_POSTFIELDS, http_build_query($params));
    curl_exec($nsedit);

That's everything that's currently supported.

<!-- gh-comment-id:74848732 --> @tuxis-ie commented on GitHub (Feb 18, 2015): No, there is no manual yet. How it currently works: - In the configfile, fill the array $adminapiips with the IP's that are allowed to connect - In the configfile, create an API-Key in $adminapikey Here's what I do to create zones from WeFact (PHP): ``` $nsediturl = 'https://<yourdomain>/nsedit/zones.php?action=create'; $params = array ( 'adminapikey' => $nseditkey, 'name' => $domtoadd, 'kind' => 'Master', 'nameserver1' => $dominfo['domain']['DNS1'], 'nameserver2' => $dominfo['domain']['DNS2'], 'owner' => $owner, 'template' => 'Tuxis' ); $nsedit = curl_init(); curl_setopt($nsedit,CURLOPT_URL, $nsediturl); curl_setopt($nsedit, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($nsedit, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($nsedit, CURLOPT_RETURNTRANSFER, 1); curl_setopt($nsedit, CURLOPT_TIMEOUT,'10'); curl_setopt($nsedit, CURLOPT_POST, 1); curl_setopt($nsedit, CURLOPT_POSTFIELDS, http_build_query($params)); curl_exec($nsedit); ``` That's everything that's currently supported.
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#10
No description provided.