Dnscontrol: Difference between revisions
imported>Onny Add see also section |
Tomodachi94 (talk | contribs) m fix creds.json and dnsconfig.js syntax highlighting |
||
Line 12: | Line 12: | ||
In the following example usage, we'll create a credentials file called <code>creds.json</code> with the login details for the domain provider [https://inwx.com Inwx.com]: | In the following example usage, we'll create a credentials file called <code>creds.json</code> with the login details for the domain provider [https://inwx.com Inwx.com]: | ||
{{file|creds.json||<nowiki> | {{file|creds.json|json|<nowiki> | ||
{ | { | ||
"inwx": { | "inwx": { | ||
Line 26: | Line 26: | ||
The second required configuration file called <code>dnsconfig.js</code> defines providers and domain configurations. In this example, we'll add a subdomain <code>test</code> to the domain <code>example.org</code> with a specific A-record. | The second required configuration file called <code>dnsconfig.js</code> defines providers and domain configurations. In this example, we'll add a subdomain <code>test</code> to the domain <code>example.org</code> with a specific A-record. | ||
{{file|dnsconfig.js||<nowiki> | {{file|dnsconfig.js|javascript|<nowiki> | ||
var REG_NONE = NewRegistrar("none"); | var REG_NONE = NewRegistrar("none"); | ||
var DSP_INWX = NewDnsProvider("inwx"); | var DSP_INWX = NewDnsProvider("inwx"); |