Skip to content
Snippets Groups Projects
Commit 4bae0a42 authored by Ralf Jung's avatar Ralf Jung Committed by Andreas Ziegler
Browse files

docs: dns-cache: explain setting dns.servers a bit more (#1268)

parent ab16cea1
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,17 @@ There are the following settings: ...@@ -14,10 +14,17 @@ There are the following settings:
servers servers
cacheentries cacheentries
If both options are set the node will cache as much DNS records as set with To use the node's DNS server, both options should be set. The node will cache at
'cacheentries' in RAM. The 'servers' list will be used to resolve the received most 'cacheentries' many DNS records in RAM. The 'servers' list will be used to
DNS queries if the request cannot be answered from cache. resolve the received DNS queries if the request cannot be answered from
If these settings do not exist, the cache is not intialized and RAM usage will not increase. cache. Gateways should announce the "next node" address via DHCP and RDNSS (if
any). Note that not setting 'servers' here will lead to DNS not working: Once
the gateways all announce the "next node" address for DNS, there is no way for
nodes to automatically determine DNS servers. They have to be baked into the
firmware.
If these settings do not exist, the cache is not initialized and RAM usage will
not increase.
When next_node.name is set, an A record and an AAAA record for the When next_node.name is set, an A record and an AAAA record for the
next-node IP address are placed in the dnsmasq configuration. This means that the content next-node IP address are placed in the dnsmasq configuration. This means that the content
......
...@@ -42,7 +42,7 @@ end ...@@ -42,7 +42,7 @@ end
need_boolean('poe_passthrough', false) need_boolean('poe_passthrough', false)
if need_table('dns', nil, false) then if need_table('dns', nil, false) then
need_number('dns.cacheentries', false) need_number('dns.cacheentries', false)
need_string_array_match('dns.servers', '^[%x:]+$', false) need_string_array_match('dns.servers', '^[%x:]+$', true)
end end
if need_table('next_node', nil, false) then if need_table('next_node', nil, false) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment