Commit b11fffca authored by chrissi^'s avatar chrissi^

radvd: Announce v6 as linklocal

This change let's uradvd deliver the v6 link-local of this node as DNS.
With this change DNS-requests are not affected by the radv-filterd
-rewrites during roaming.
Signed-off-by: chrissi^'s avatarChrissi^ <chris@tinyhost.de>
parent 2e290a7a
#!/usr/bin/lua
local site = require "gluon.site"
local json=require("jsonc")
local f = assert(io.popen("ip -6 -br -j addr show dev br-client scope link", 'r'))
local s = assert(f:read('*a'))
f:close()
local ll = json.parse(s)[1]["addr_info"][2]["local"]
local f = io.open("/tmp/range6","r")
local g = io.open("/tmp/addr6", "r")
if f and g then
if f then
local range6 = f:read('*a')
local addr6 = g:read('*a')
f:close()
g:close()
io.write("-i br-client -p " .. range6)
io.write(" --rdnss " .. addr6)
io.write(" --rdnss " .. ll)
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