Lines Matching full:search
45 # When updating resolv.conf(5), should we populate the `search' directive with
48 # in the `search' directive, otherwise use only "sub.domain.com".
51 # `search' domain by setting the second option below, `RESOLVER_SEARCH_NDOTS'.
79 # Returns the search configured in resolv.conf(5).
88 if ( match(tl0, /^[[:space:]]*search[[:space:]]+/) ) {
89 search = substr($0, RLENGTH + 1)
90 sub(/[[:space:]]*#.*$/, "", search)
91 gsub(/[[:space:]]+/, " ", search)
92 print search
103 # Updates the search/domain directives in resolv.conf(5) given a valid fully-
119 search = ""
126 if ( length(search) ) search = search " "
127 search = search subdomain
131 else search = domain
146 match(tl0, /^[[:space:]]*search[[:space:]]+/) ) \
148 if ( length(search) ) {
149 printf "%s%s\n", substr($0, 0, RLENGTH), search
156 if ( ! search_found && length(search) )
157 printf "search\t%s\n", search
168 # Extrapolate the desired domain search parameter for resolv.conf(5)
170 local search nfields ndots domain="${hostname#*.}"
172 search=
176 search="$search $domain"
180 search="${search# }"
183 search="$domain"
187 # Save domain/search information only if different from resolv.conf(5)
190 "$search" != "$( f_resolv_conf_search )" ]
192 f_dialog_info "Saving new domain/search settings" \
197 # update with our new `domain' and `search' directives.
222 # occurrences of `domain' and `search' directives (or add
226 # The domain and search keywords are mutually exclusive.
231 # environment, all sub-domains will be added to the `search'