Commit 2ef8b16c authored by chrissi^'s avatar chrissi^

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: chrissi^'s avatarChrissi^ <chris@tinyhost.de>
parent f9272709
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment