Dnscontrol: Difference between revisions

imported>Onny
mNo edit summary
Klinger (talk | contribs)
m Category:DNS added
 
(4 intermediate revisions by 3 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 53: Line 53:
# nix shell nixpkgs#dnsutils --command dig +short test.example.org
# nix shell nixpkgs#dnsutils --command dig +short test.example.org
</syntaxhighlight>
</syntaxhighlight>
== See also ==
* [[Octodns]], tool that allows for easy management of DNS records across multiple providers


[[Category:Applications]]
[[Category:Applications]]
[[Category:CLI Applications]]
[[Category:Networking]]
[[Category:DNS]]