View Source VintageNet.Resolver.ResolvConf (vintage_net v0.13.5)
Utilities for creating resolv.conf file contents
Summary
Functions
Convert the name server information to resolv.conf contents
Types
@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
@spec to_config(entry_map(), additional_name_servers()) :: iolist()
Convert the name server information to resolv.conf contents
@spec to_name_server_list(entry_map(), additional_name_servers()) :: [ name_server_info() ]