summaryrefslogtreecommitdiff
path: root/interface-ip.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-19 22:57:21 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-19 22:57:21 +0200
commit69c5043fdcea724f59055630eb0cf593c41732cb (patch)
tree2eb95575eac01cee7dda9eabe53951ffaa6dbec0 /interface-ip.c
parent87d4c8eca7621c424e50e1fa70684d4c0e307984 (diff)
downloadnetifd-69c5043fdcea724f59055630eb0cf593c41732cb.tar.gz
implement a generic peerdns option to suppress proto handler dns entries
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 254e0bb..1a22980 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -489,7 +489,8 @@ interface_write_resolv_conf(void)
fprintf(f, "# Interface %s\n", iface->name);
write_resolv_conf_entries(f, &iface->config_ip);
- write_resolv_conf_entries(f, &iface->proto_ip);
+ if (!iface->proto_ip.no_dns)
+ write_resolv_conf_entries(f, &iface->proto_ip);
}
fclose(f);
if (rename(path, resolv_conf) < 0) {