This commit is contained in:
Sense T
2024-04-09 11:36:34 +08:00
parent 613ef7fdd9
commit e18781ba25
2 changed files with 13 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ func (c *Controller) CreateDomain(d *models.Domain) (*models.Domain, error) {
}
r := &models.RecordWithType[dns.SOARecord]{}
r.Zone = fmt.Sprintf("%s.", d.DomainName)
r.Zone = d.WithDotEnd()
r.Name = "@"
r.RecordType = models.RecordTypeSOA
r.Content.Ns = d.MainDNS