The branch stable/14 has been updated by des:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=aad298c8f9cabe53379bea59ce075f2eb0c93898

commit aad298c8f9cabe53379bea59ce075f2eb0c93898
Author:     Dag-Erling Smørgrav <[email protected]>
AuthorDate: 2026-06-27 21:15:29 +0000
Commit:     Dag-Erling Smørgrav <[email protected]>
CommitDate: 2026-07-07 06:38:17 +0000

    openresolv: Trim leading dot from domain name
    
    Merge upstream change d9f6b1a2d292
    
    PR:             296305
    MFC after:      1 week
    
    (cherry picked from commit 4b26ea54713941243b3a0d4263bebbf192ee68c7)
---
 contrib/openresolv/resolvconf.in | 3 +++
 1 file changed, 3 insertions(+)

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"

Reply via email to