From 598a961702a9a99eac2317ca1325c11f9c1341ea Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 1 Aug 2013 10:03:27 +0000 Subject: [PATCH] If the DNS search list is a direct match for the domain then don't bother writing the search option to resolv.conf --- dhcpcd-hooks/20-resolv.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dhcpcd-hooks/20-resolv.conf b/dhcpcd-hooks/20-resolv.conf index 7a5f9534..54e10c89 100644 --- a/dhcpcd-hooks/20-resolv.conf +++ b/dhcpcd-hooks/20-resolv.conf @@ -113,7 +113,9 @@ add_resolv_conf() new_domain_search="$*" fi fi - if [ -n "$new_domain_search" ]; then + if [ -n "$new_domain_search" -a \ + "$new_domain_search" != "$new_domain_name" ] + then if valid_domainname_list; then conf="${conf}search $new_domain_search$NL" else -- 2.47.3