Generate zone files when the domain is delegated.
This commit is contained in:
parent
3e16297d0c
commit
5f2f38f6f4
1 changed files with 2 additions and 3 deletions
|
|
@ -108,7 +108,7 @@ class DNSManager::Storage
|
|||
zone = zone_must_exist! domain
|
||||
|
||||
if delegation = zone.delegation
|
||||
Baguette::Log.info "zone #{domain} is delegated"
|
||||
zone.update_delegation @delegationdir
|
||||
return
|
||||
end
|
||||
|
||||
|
|
@ -361,8 +361,7 @@ class DNSManager::Storage
|
|||
zone.update_serial
|
||||
zones_by_domain.update_or_create zone.domain, zone
|
||||
|
||||
# Do not generate a bind9 file if the zone is delegated.
|
||||
generate_bind9_zonefile zone.domain unless zone.delegation
|
||||
generate_bind9_zonefile zone.domain
|
||||
end
|
||||
|
||||
def update_rr(user_id : UserDataID, domain : String, rr : Zone::ResourceRecord) : IPC::JSON
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue