Dnscontrol: Difference between revisions
imported>Onny Initial page |
Category:Networking added |
||
(3 intermediate revisions by 2 users not shown) | |||
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"); | ||
Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Confirm changes to the dns record using the tool <code>dig</code>. | |||
<syntaxhighlight lang="console"> | |||
# nix shell nixpkgs#dnsutils --command dig +short test.example.org | |||
</syntaxhighlight> | |||
== See also == | |||
* [[Octodns]], tool that allows for easy management of DNS records across multiple providers | |||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Networking]] |