From 26afa1e5853c7443b64fe69609c37dc13a30cfec Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 4 Jan 2016 15:46:06 +0100 Subject: net.dns: Allow a zone id in resolv.conf (eg like %eth0) --- net/dns.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dns.lua b/net/dns.lua index 9d90c24c..49958ed7 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -600,7 +600,7 @@ function resolver:adddefaultnameservers() -- - - - - adddefaultnameservers if resolv_conf then for line in resolv_conf:lines() do line = line:gsub("#.*$", "") - :match('^%s*nameserver%s+([%x:%.]*)%s*$'); + :match('^%s*nameserver%s+([%x:%.]*%%?%S*)%s*$'); if line then local ip = new_ip(line); if ip then -- cgit v1.2.3