mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
Plus d'espacements constants dans les enreg DNS pour plus de propreté
This commit is contained in:
parent
d174e28c3e
commit
b64a359eb0
1 changed files with 5 additions and 5 deletions
|
@ -280,10 +280,10 @@ class SOA(models.Model):
|
||||||
<ttl> ; TTL
|
<ttl> ; TTL
|
||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
' {refresh};refresh\n'
|
' {refresh}; refresh\n'
|
||||||
' {retry};retry\n'
|
' {retry}; retry\n'
|
||||||
' {expire};expire\n'
|
' {expire}; expire\n'
|
||||||
' {ttl};TTL'
|
' {ttl}; TTL'
|
||||||
).format(
|
).format(
|
||||||
refresh=str(self.refresh).ljust(12),
|
refresh=str(self.refresh).ljust(12),
|
||||||
retry=str(self.retry).ljust(12),
|
retry=str(self.retry).ljust(12),
|
||||||
|
@ -584,7 +584,7 @@ class Domain(models.Model):
|
||||||
def dns_entry(self):
|
def dns_entry(self):
|
||||||
""" Une entrée DNS"""
|
""" Une entrée DNS"""
|
||||||
if self.cname:
|
if self.cname:
|
||||||
return str(self.name) + " IN CNAME " + str(self.cname) + "."
|
return str(self.name).ljust(15) + " IN CNAME " + str(self.cname) + "."
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
""" Empèche le save sans extension valide.
|
""" Empèche le save sans extension valide.
|
||||||
|
|
Loading…
Reference in a new issue