We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09abef8 commit bb154d5Copy full SHA for bb154d5
dyndns/model/host.go
@@ -10,7 +10,7 @@ import (
10
type Host struct {
11
gorm.Model
12
Hostname string `gorm:"unique_index:idx_host_domain;not null" form:"hostname" validate:"required,hostname"`
13
- Domain string `gorm:"unique_index:idx_host_domain;not null" form:"domain" validate:"required,hostname"`
+ Domain string `gorm:"unique_index:idx_host_domain;not null" form:"domain" validate:"required,fqdn"`
14
Ip string `form:"ip" validate:"omitempty,ipv4|ipv6"`
15
Ttl int `form:"ttl" validate:"required,min=20,max=86400"`
16
LastUpdate time.Time `form:"lastupdate"`
0 commit comments