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^ <>
parent 2e290a7a
local site = require ""
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'))
local ll = json.parse(s)[1]["addr_info"][2]["local"]
local f ="/tmp/range6","r")
local g ="/tmp/addr6", "r")
if f and g then
if f then
local range6 = f:read('*a')
local addr6 = g:read('*a')
io.write("-i br-client -p " .. range6)
io.write(" --rdnss " .. addr6)
io.write(" --rdnss " .. ll)
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