netcupdns
This project is not affiliated with the company netcup GmbH.
javascript/nodejs wrapper for the netcup dns api
Usage
Install
npm i netcupdns
Basic Example
const netcupdns = ; ; { let sessionCredentials = await netcupdns; console;}
Functions
every return is async and has to be awaited with the await keyword
/* returns the session credentials; takes the apikey apipassword and customernumber;you cand find the api details on netcup>ccp>stammdaten>api(top right corner) */ //takes sessionCredentials and domainname; returns array of present dns record for a domain //takes record and inserts it; if record already exists (judged by hostname) it overwrites it //inserts dns record without checking if it already exists; returns array of updated dns records; //takes single hostname as string; ('mail');returns array of matching records //takes single type as string; ('AAAA'); returns array of matching records //takes destination as string; returns array with ids of matching records //takes array of records and deletes them;