Skip to content

Commit

Permalink
lime-proto-anygw: integrate thisnode.info AAAA records into uci dhcp …
Browse files Browse the repository at this point in the history
…as well

Signed-off-by: Gui Iribarren <gui@altermundi.net>
  • Loading branch information
altergui committed Mar 20, 2017
1 parent f40accd commit 6453b1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lime-proto-anygw/src/anygw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ function anygw.configure(args)
function(s)
uci:set("dhcp", s[".name"], "address", {
"/anygw/"..anygw_ipv4:host():string(),
"/thisnode.info/"..anygw_ipv4:host():string()
"/anygw/"..anygw_ipv6:host():string(),
"/thisnode.info/"..anygw_ipv4:host():string(),
"/thisnode.info/"..anygw_ipv6:host():string()
})
end
)
Expand All @@ -90,8 +92,6 @@ function anygw.configure(args)
table.insert(content, "dhcp-range=tag:anygw,"..ipv6:network():string()..",ra-names,24h")
table.insert(content, "dhcp-option=tag:anygw,option6:domain-search,lan")
table.insert(content, "dhcp-option=tag:anygw,option6:dns-server,"..anygw_ipv6:host():string())
table.insert(content, "address=/anygw/"..anygw_ipv6:host():string())
table.insert(content, "address=/thisnode.info/"..anygw_ipv6:host():string())
fs.writefile("/etc/dnsmasq.d/lime-proto-anygw-20-ipv6.conf", table.concat(content, "\n").."\n")

io.popen("/etc/init.d/dnsmasq enable || true"):close()
Expand Down

0 comments on commit 6453b1c

Please sign in to comment.