Skip to content
Snippets Groups Projects
Commit 7064332e authored by chrissi^'s avatar chrissi^ Committed by chrissi^
Browse files

radvd: announce IPv6 of VPN-node as DNS-Server


Using this change an VPN-node announces it's own IPv6 as DNS server.
/tmp/addr6 is written by nodeoute.lua during runtime configuration.

Signed-off-by: default avatarChrissi^ <chris@tinyhost.de>
parent 60c4d37b
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,14 @@
local site = require "gluon.site"
local f = io.open("/tmp/range6","r")
if f then
local g = io.open("/tmp/addr6", "r")
if f and g then
local range6 = f:read('*a')
local addr6 = g:read('*a')
f:close()
io.write("-i br-client -p " .. range6)
g:close()
if site.dns.servers() and site.next_node.ip6() then
io.write(" --rdnss " .. site.next_node.ip6())
end
io.write("-i br-client -p " .. range6)
io.write(" --rdnss " .. addr6)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment