github.com/noisysockets/noisysockets@v0.21.2-0.20240515114641-7f467e651c90/internal/dns/resolver.go (about)

     1  // SPDX-License-Identifier: MPL-2.0
     2  /*
     3   * Copyright (C) 2024 The Noisy Sockets Authors.
     4   *
     5   * This Source Code Form is subject to the terms of the Mozilla Public
     6   * License, v. 2.0. If a copy of the MPL was not distributed with this
     7   * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     8   */
     9  
    10  package dns
    11  
    12  import "net/netip"
    13  
    14  // Resolver is a DNS resolver.
    15  type Resolver interface {
    16  	// LookupHost looks up the IP addresses for a given host.
    17  	LookupHost(host string) ([]netip.Addr, error)
    18  }