github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/net/dnsclient.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package net
     6  
     7  // SRVは単一のDNS SRVレコードを表します。
     8  type SRV struct {
     9  	Target   string
    10  	Port     uint16
    11  	Priority uint16
    12  	Weight   uint16
    13  }
    14  
    15  // MXは単一のDNS MXレコードを表します。
    16  type MX struct {
    17  	Host string
    18  	Pref uint16
    19  }
    20  
    21  // NSは単一のDNS NSレコードを表します。
    22  type NS struct {
    23  	Host string
    24  }