mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
parent
ed8ce16fb5
commit
b76cbae5a0
@ -79,7 +79,7 @@
|
|||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">System <b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">System <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#system_status" onclick="return show_panel(this);">Status Checks</a></li>
|
<li><a href="#system_status" onclick="return show_panel(this);">Status Checks</a></li>
|
||||||
<li><a href="#system_external_dns" onclick="return show_panel(this);">External DNS (Advanced)</a></li>
|
<li><a href="#system_dns" onclick="return show_panel(this);">DNS (Advanced)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown active">
|
<li class="dropdown active">
|
||||||
@ -109,8 +109,8 @@
|
|||||||
{% include "system-status.html" %}
|
{% include "system-status.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="panel_system_external_dns" class="container panel">
|
<div id="panel_system_dns" class="container panel">
|
||||||
{% include "system-external-dns.html" %}
|
{% include "system-dns.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="panel_login" class="panel">
|
<div id="panel_login" class="panel">
|
||||||
|
@ -23,18 +23,50 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<h2>External DNS</h2>
|
<h2>DNS (Advanced)</h2>
|
||||||
|
|
||||||
<p class="text-danger">This is for advanced configurations.</p>
|
<p class="text-danger">Custom and external DNS are for advanced configurations.</p>
|
||||||
|
|
||||||
<h3>Overview</h3>
|
<h3>Custom DNS</h3>
|
||||||
|
|
||||||
|
<p>It is possible to set custom DNS records on domains hosted here. For instance, you can create your own dynamic DNS service. To do so, you will need to call your box’s DNS API.</p>
|
||||||
|
|
||||||
|
<p>It works like this:</p>
|
||||||
|
|
||||||
|
<pre>curl -d "" --user {email}:{password} https://{{hostname}}/admin/dns/set/{qname}[/{rtype}[/{value}]]</pre>
|
||||||
|
|
||||||
|
<p>The parameters are:</p>
|
||||||
|
|
||||||
|
<table class="table">
|
||||||
|
<thead><th>Parameter</th> <th>Value</th></thead>
|
||||||
|
<tr><td>email</td> <td>The email address of any administrative user here.</td></tr>
|
||||||
|
<tr><td>password</td> <td>That user’s password.</td></tr>
|
||||||
|
<tr><td>qname</td> <td>The fully qualified domain name for the record you are trying to set.</td></tr>
|
||||||
|
<tr><td>rtype</td> <td>Optional. The resource type: A (an IPv4 address; the default), AAAA (an IPv6 address), TXT (a text string), or CNAME (an alias, which is a fully qualified domain name).</td></tr>
|
||||||
|
<tr><td>value</td> <td>Optional-ish. The new record’s value. If not provided, the IPv4 address of the remote host is used — this is handy for dynamic DNS! You can also set this in a POST parameter. To delete a record, pass “value=” in the POST body.</td></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p>Examples:</p>
|
||||||
|
|
||||||
|
<pre># sets laptop.mydomain.com to point to the IP address of the machine you are executing curl on
|
||||||
|
curl -d "" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/laptop.mydomain.com
|
||||||
|
|
||||||
|
# sets an alias
|
||||||
|
curl -d "" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/foo.mydomain.com/cname/bar.mydomain.com
|
||||||
|
|
||||||
|
# sets a TXT record
|
||||||
|
curl -d "value=something%20here" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/foo.mydomain.com/txt
|
||||||
|
|
||||||
|
# clears the TXT record
|
||||||
|
curl -d "value=" --user me@mydomain.com:###### https://{{hostname}}/admin/dns/set/foo.mydomain.com/txt</pre>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>External DNS</h3>
|
||||||
|
|
||||||
<p>Although your box is configured to serve its own DNS, it is possible to host your DNS elsewhere. We do not recommend this.</p>
|
<p>Although your box is configured to serve its own DNS, it is possible to host your DNS elsewhere. We do not recommend this.</p>
|
||||||
|
|
||||||
<p>If you do so, you are responsible for keeping your DNS entries up to date. In particular DNSSEC entries must be re-signed periodically. Do not set a DS record at your registrar or publish DNSSEC entries in your DNS zones if you do not intend to keep them up to date.</p>
|
<p>If you do so, you are responsible for keeping your DNS entries up to date. In particular DNSSEC entries must be re-signed periodically. Do not set a DS record at your registrar or publish DNSSEC entries in your DNS zones if you do not intend to keep them up to date.</p>
|
||||||
|
|
||||||
<h3>DNS Settings</h3>
|
|
||||||
|
|
||||||
<p>Enter the following DNS entries at your DNS provider:</p>
|
<p>Enter the following DNS entries at your DNS provider:</p>
|
||||||
|
|
||||||
<table id="external_dns_settings" class="table">
|
<table id="external_dns_settings" class="table">
|
||||||
@ -50,7 +82,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function show_system_external_dns() {
|
function show_system_dns() {
|
||||||
$('#external_dns_settings tbody').html("<tr><td colspan='2' class='text-muted'>Loading...</td></tr>")
|
$('#external_dns_settings tbody').html("<tr><td colspan='2' class='text-muted'>Loading...</td></tr>")
|
||||||
api(
|
api(
|
||||||
"/dns/dump",
|
"/dns/dump",
|
Loading…
Reference in New Issue
Block a user