aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-06-27 21:15:29 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-06-27 21:15:29 +0000
commit4b26ea54713941243b3a0d4263bebbf192ee68c7 (patch)
tree9d000d320ec68bcbaeef5129ae8a4e84883761af /contrib
parent21e94133eb51ef4eaea5bc37891741dd52d5933b (diff)
parentded28c51566f93c14a84645898b48f212c3f7cc8 (diff)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/openresolv/resolvconf.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/openresolv/resolvconf.in b/contrib/openresolv/resolvconf.in
index 2f55a9de0eda..f6975cbec928 100644
--- a/contrib/openresolv/resolvconf.in
+++ b/contrib/openresolv/resolvconf.in
@@ -922,11 +922,14 @@ tolower() {
# Strip any trailing dot from each name as a FQDN does not belong
# in resolv.conf(5).
+# Likewise, strip any leading dot from poorly configured routers
+# as some sunscribers don't work with that.
# While DNS is not case sensitive, our labels for building the zones
# are, so ensure it's lower case.
process_domain()
{
for word in $(tolower "$@"); do
+ word="${word#.}"
printf "%s " "${word%.}"
done
printf "\n"