Bug 219778 - RFE: More search domains in /etc/resolv.conf
Summary: RFE: More search domains in /etc/resolv.conf
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: glibc   
(Show other bugs)
Version: 3.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2006-12-15 12:51 UTC by Binand Sethumadhavan
Modified: 2017-11-08 15:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-15 13:04:56 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Binand Sethumadhavan 2006-12-15 12:51:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0

Description of problem:
The resolv.conf manpage under the section for 'search' keyword says:

                 The search list is currently limited to six domains with a
                 total of 256 characters each.

Can the limit of 6 domains be increased to a higher number (say 32)?

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Add several ( > 6) domains in a "search" line in /etc/resolv.conf
2. Try to lookup one of the hosts in a domain whose position is > 6
3. Fails

Actual Results:
"Unknown host"

Expected Results:
A proper name lookup

Additional info:
A quick search through glibc sources seem to indicate that the

# define MAXDNSRCH              6

is what controls this, and I couldn't see any side effect of changing this number to something higher. But don't let me fool you :)

Comment 1 Jakub Jelinek 2006-12-15 13:04:56 UTC
That's not possible, the max number of search lines is part of the glibc ABI.
An MAXDNSRCH sized array is part of the struct __res_state structure (and _res
object), which various applications access directly.

Note You need to log in before you can comment on or make changes to this bug.