From f5dcb38ead5bf812e19acfa4c3b8867f3123f466 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 13 Sep 2013 10:34:03 +0200 Subject: resolve: Remove comment when using resolvconf(8) Since comments in resolv.conf are only valid at the beginning of a line resolvconf(8) seems to have started treating any text after 'nameserver ' as additional IP addresses for name servers. Since it ignores comments, and we can easily remove the added servers again, there is no point to add any. Fixes #410. --- src/libhydra/plugins/resolve/resolve_handler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libhydra/plugins/resolve/resolve_handler.c') diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libhydra/plugins/resolve/resolve_handler.c index 6c57fa0bf..2eee854a9 100644 --- a/src/libhydra/plugins/resolve/resolve_handler.c +++ b/src/libhydra/plugins/resolve/resolve_handler.c @@ -170,8 +170,7 @@ static bool invoke_resolvconf(private_resolve_handler_t *this, return FALSE; } DBG1(DBG_IKE, "installing DNS server %H via resolvconf", addr); - fprintf(out, "nameserver %H # by strongSwan, from %Y\n", addr, - server); + fprintf(out, "nameserver %H\n", addr); success = !ferror(out); if (pclose(out)) { -- cgit v1.2.3