aboutsummaryrefslogtreecommitdiff
path: root/models/dns/a.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-08 23:38:54 +0530
committerBobby <[email protected]>2026-03-08 23:38:54 +0530
commit94d5561e7cc39eb2909bdc36d4ef4972cd21e56d (patch)
tree98d9792dda80f76f185ab2eb37c1de005be9ea0f /models/dns/a.go
parent1136af49815be77a0aca151f3b8ec7348bf4b4c8 (diff)
downloaddove-94d5561e7cc39eb2909bdc36d4ef4972cd21e56d.tar.xz
dove-94d5561e7cc39eb2909bdc36d4ef4972cd21e56d.zip
Refactor DNS and SMTP configurations; add system DNS management
- Updated DNS server address configuration to use BindAddress and DnsPort. - Enhanced email submission to utilize BindAddress for SMTP server address. - Improved error messages for unknown recipient domains. - Introduced a new OrderedMap structure for route management. - Added system DNS management functions for Linux, Darwin, and Windows platforms. - Created new dashboard services for DNS configuration and overview. - Updated UI to include Proxy Rules section and improved descriptions. - Added new utility functions for handling DNS configurations.
Diffstat (limited to 'models/dns/a.go')
-rw-r--r--models/dns/a.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/dns/a.go b/models/dns/a.go
index b3c7f38..3965e0e 100644
--- a/models/dns/a.go
+++ b/models/dns/a.go
@@ -9,6 +9,5 @@ type ARecord struct {
DomainID uint `gorm:"not null;index" json:"domain_id"`
Name string `gorm:"not null;default:@" json:"name"`
Address string `gorm:"not null" json:"address"`
- Port int `gorm:"default:0" json:"port"`
- TTL uint32 `gorm:"not null;default:300" json:"ttl"`
+ TTL uint32 `gorm:"not null;default:1" json:"ttl"`
}