View Source VintageNet.Resolver.ResolvConf (vintage_net v0.13.3)
Utilities for creating resolv.conf file contents
Link to this section Summary
Functions
Convert the name server information to resolv.conf contents
Link to this section 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()] }
Link to this section 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() ]