Search directive from resolv.conf had a maximum of 8 domains. Any more were ignored. Do not ignore them anymore; iterate over any number of domains. Test resolv.conf support by checking the first and last domain in the search list. Ignore the domains between; just ensure that the last domain in the configuration is the last domain parsed.
13 lines
563 B
Plaintext
13 lines
563 B
Plaintext
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
#
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
# information regarding copyright ownership.
|
|
|
|
search example.com n1.example.org n2.example.org n3.example.org n4.example.org n5.example.org n6.example.org n7.example.org n8.example.org example.net
|