Skip to content

Commit

Permalink
lime-proto-anygw: add thisnode.info alias domain, equivalent to anygw
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Oct 10, 2015
1 parent 897f81d commit 8bcf0f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/lime-proto-anygw/src/anygw.lua
Expand Up @@ -74,6 +74,7 @@ function anygw.configure(args)
table.insert(content, "dhcp-option-force=tag:anygw,option:mtu,1350")
table.insert(content, "dhcp-broadcast=tag:anygw")
table.insert(content, "address=/anygw/"..anygw_ipv4:host():string())
table.insert(content, "address=/thisnode.info/"..anygw_ipv4:host():string())
fs.writefile("/etc/dnsmasq.d/lime-proto-anygw-10-ipv4.conf", table.concat(content, "\n").."\n")

content = { }
Expand All @@ -82,6 +83,7 @@ function anygw.configure(args)
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 8bcf0f2

Please sign in to comment.