[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#817841: openresolv: doesn't work with multiple domains in search, they are concatenated.



The problem is in /sbin/resolvconf

trip any trailing dot from each name as a FQDN does not belong
# in resolv.conf(5)
# If you think otherwise, capture a DNS trace and you'll see libc
# will strip it regardless.
# This also solves setting up duplicate zones in our subscribers.
strip_trailing_dots()
{
        local n=

        for n; do
                printf "%s" "${n%.}"
        done
        printf "\n"
}


where printf "%s" "${n%.}" is missing space to separate multiple search
values again. Printing additional space at the begining fixed it for me:

strip_trailing_dots()
{
        local n=

        for n; do
                printf " %s" "${n%.}"
        done
        printf "\n"
}

mk


Reply to: