View Source VintageNet.IP.DnsdConfig (vintage_net v0.13.5)
This is a helper module for VintageNet.Technology implementations that use the Busybox DNS server.
DNS functionality is only supported for IPv4 configurations using static IP addresses.
DNS server parameters are:
:port
- The port to use (defaults to 53):ttl
- DNS record TTL in seconds (defaults to 120):records
- DNS A records (required)
The :records
option is a list of name/IP address tuples. For example:
[{"example.com", {1, 2, 3, 4}}]
Only IPv4 addresses are supported. Addresses may be specified as strings or tuples, but will be normalized to tuple form before being applied.
Summary
Functions
Add dnsd configuration commands for running a DNSD server
Normalize the DNSD parameters in a configuration.
Functions
@spec add_config(VintageNet.Interface.RawConfig.t(), map(), keyword()) :: VintageNet.Interface.RawConfig.t()
Add dnsd configuration commands for running a DNSD server
Normalize the DNSD parameters in a configuration.