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
761fac72
Commit
761fac72
authored
Jun 18, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsd.conf wasn't properly using the signed zone files
parent
dd15bf43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dns_update.py
management/dns_update.py
+7
-6
No files found.
management/dns_update.py
View file @
761fac72
...
...
@@ -72,9 +72,13 @@ def do_dns_update(env):
# write_nsd_zone is smart enough to check if a zone's signature
# is nearing experiation and if so it'll bump the serial number
# and return True so we get a chance to re-sign it.
#
# Also update the zone's filename so nsd.conf uses the signed file.
zonefiles
[
i
][
1
]
=
sign_zone
(
domain
,
zonefile
,
env
)
sign_zone
(
domain
,
zonefile
,
env
)
# Now that all zones are signed (some might not have changed and so didn't
# just get signed now, but were before) update the zone filename so nsd.conf
# uses the signed file.
for
i
in
range
(
len
(
zonefiles
)):
zonefiles
[
i
][
1
]
+=
".signed"
# Write the main nsd.conf file.
if
write_nsd_conf
(
zonefiles
):
...
...
@@ -365,9 +369,6 @@ def sign_zone(domain, zonefile, env):
for
fn
in
files_to_kill
:
os
.
unlink
(
fn
)
# Update the zone's filename so nsd.conf uses the signed file.
return
zonefile
+
".signed"
########################################################################
def
get_ds_records
(
env
):
...
...
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