vintage_net v0.7.5 VintageNet.NameResolver View Source
This module manages the contents of "/etc/resolv.conf". This file is used by the C library for resolving domain names and must be kept up-to-date as links go up and down. This module assumes exclusive ownership on "/etc/resolv.conf", so if any other code in the system tries to modify the file, their changes will be lost on the next update.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Clear all entries in "/etc/resolv.conf" that are associated with the specified interface.
Completely clear out "/etc/resolv.conf".
Set the search domain and name server list for the specified interface.
Start the resolv.conf manager.
Stop the resolv.conf manager.
Link to this section Types
Settings for NameResolver
State of the server.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Clear all entries in "/etc/resolv.conf" that are associated with the specified interface.
Completely clear out "/etc/resolv.conf".
setup(ifname, domain, name_servers)
View Sourcesetup(String.t(), String.t() | nil, [VintageNet.any_ip_address()]) :: :ok
Set the search domain and name server list for the specified interface.
This replaces any entries in the /etc/resolv.conf
for this interface.
Start the resolv.conf manager.
Stop the resolv.conf manager.