# HG changeset patch # User Kim Alvefur # Date 1451918766 -3600 # Node ID 7b0651e4534f4d348cb951a2c0aa6bc99433fb16 # Parent 23de70d19e77c4484a5446fd6138fdc294856050 net.dns: Allow a zone id in resolv.conf (eg like %eth0) diff -r 23de70d19e77 -r 7b0651e4534f net/dns.lua --- a/net/dns.lua Mon Jan 04 17:47:40 2016 +0100 +++ b/net/dns.lua Mon Jan 04 15:46:06 2016 +0100 @@ -600,7 +600,7 @@ 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