github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dns/v2/nameservers/results.go (about) 1 package nameservers 2 3 // Zone represents a DNS zone. 4 type NameServer struct { 5 // Type of the name server.Value options: 6 // public: indicates a public name server. 7 // private: indicates a private name server. 8 Type string `json:"type"` 9 10 // Region ID. When you query a public name server, leave this parameter blank. 11 Region string `json:"region"` 12 13 // Array of name server record objects 14 Records []Record `json:"ns_records"` 15 } 16 17 type Record struct { 18 // Host name. This parameter is left blank when a private name server is used. 19 HostName string `json:"hostname"` 20 // Address of the name server. When the server is a public name server, this parameter is left blank. 21 Address string `json:"address"` 22 // the priority. If the value of priority is 1, the DNS server is the first one to resolve domain names. 23 Priority int `json:"priority"` 24 }