View Source VintageNet.Resolver.ResolvConf (vintage_net v0.13.5)

Utilities for creating resolv.conf file contents

Summary

Types

Name resolver settings for an interface

All entries

Types

Link to this type

additional_name_servers()

View Source
@type additional_name_servers() :: [:inet.ip_address()]
@type entry() :: %{
  priority: integer(),
  domain: String.t(),
  name_servers: [:inet.ip_address()]
}

Name resolver settings for an interface

@type entry_map() :: %{required(VintageNet.ifname()) => entry()}

All entries

@type name_server_info() :: %{
  address: :inet.ip_address(),
  from: [:global | VintageNet.ifname()]
}

Functions

Link to this function

to_config(entries, additional_name_servers)

View Source
@spec to_config(entry_map(), additional_name_servers()) :: iolist()

Convert the name server information to resolv.conf contents

Link to this function

to_name_server_list(entries, additional_name_servers)

View Source
@spec to_name_server_list(entry_map(), additional_name_servers()) :: [
  name_server_info()
]