Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
e2fa01e0
Commit
e2fa01e0
authored
Mar 04, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #348 from benschumacher/master
Update MX records using DNS Update API / Management UI
parents
1be0f39b
6558f05d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
dns_update.py
management/dns_update.py
+1
-1
custom-dns.html
management/templates/custom-dns.html
+1
-0
No files found.
management/dns_update.py
View file @
e2fa01e0
...
...
@@ -691,7 +691,7 @@ def set_custom_dns_record(qname, rtype, value, env):
v
=
ipaddress
.
ip_address
(
value
)
if
rtype
==
"A"
and
not
isinstance
(
v
,
ipaddress
.
IPv4Address
):
raise
ValueError
(
"That's an IPv6 address."
)
if
rtype
==
"AAAA"
and
not
isinstance
(
v
,
ipaddress
.
IPv6Address
):
raise
ValueError
(
"That's an IPv4 address."
)
elif
rtype
in
(
"CNAME"
,
"TXT"
,
"SRV"
):
elif
rtype
in
(
"CNAME"
,
"TXT"
,
"SRV"
,
"MX"
):
# anything goes
pass
else
:
...
...
management/templates/custom-dns.html
View file @
e2fa01e0
...
...
@@ -35,6 +35,7 @@
<option
value=
"AAAA"
data-hint=
"Enter an IPv6 address."
>
AAAA (IPv6 address)
</option>
<option
value=
"CNAME"
data-hint=
"Enter another domain name followed by a period at the end (e.g. mypage.github.io.)."
>
CNAME (DNS forwarding)
</option>
<option
value=
"TXT"
data-hint=
"Enter arbitrary text."
>
TXT (text record)
</option>
<option
value=
"MX"
data-hint=
"Enter record in the form of PRIORIY DOMAIN., including trailing period (e.g. 20 mx.example.com.)."
>
MX (mail exchanger)
</option>
</select>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment