Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364171 - sys-libs/glibc-2.11.3: more then 6 dns_search in resolv.conf possible cues changes in resolv.h
Summary: sys-libs/glibc-2.11.3: more then 6 dns_search in resolv.conf possible cues ch...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 20:53 UTC by Rafael Jentszok
Modified: 2011-04-30 00:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Jentszok 2011-04-19 20:53:17 UTC
man page of resolv.conf is saying that are possible max 6 dns_search with max 256 characters. But there is a way to change it. I allready tryied it out and it's working.
In source of glibc-2.11.3 is a file resolv/resolv.h (after compiling is this file to find at /usr/include/resolv.h)
There are to things to change "MAXDNSRCH" and "char defdname"
I changed it to
# define MAXDNSRCH              20
char    defdname[1024];

I have decompressed the  sys-libs/glibc-2.11.3 source, changed the values in this resolve.h file and compiled the source. After that was the file in /usr/include/resolv.h with my changed values and I'm running at the moment 13 dns_search domain names and all are working.

The windows can do it for years, but linux can only 6 at default. 
I'm working in huge company in Germany and we are using more then 20 domains. 
I thing that are many people they have also this problems. I found many questions in the internet with this problem but with no good solution. 
The resolv.h file is from
*      @(#)resolv.h    8.1 (Berkeley) 6/2/93
*      $BINDId: resolv.h,v 8.31 2000/03/30 20:16:50 vixie Exp $
so it is 11 years old.

My question is, would it be possible to change it to the default value in sys-libs/glibc or make a patch file for all future versions that could be activated on system only one time, so that the future updates would be install it as default?

Reproducible: Always
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-04-19 20:59:57 UTC
Just curious, have you asked upstream to change the default yet? What was the response?

http://www.gnu.org/software/libc/libc.html
Comment 2 Tolga Dalman 2011-04-20 07:15:20 UTC
I don't think this is necessary for normal users, since most of them will never
use more than two domains. As suggested, you can ask the glibc folks, but they are in general pretty grumpy, thus, don't expect too much help from there.
That said, you should either stick with your custom-built glibc, or install a
nameserver for your company.

Hope that helps :)
Comment 3 Rafael Jentszok 2011-04-20 08:42:25 UTC
(In reply to comment #1)
> Just curious, have you asked upstream to change the default yet? What was the
> response?
> 
> http://www.gnu.org/software/libc/libc.html

No I didn't but thanks, I will do taht
Comment 4 Rafael Jentszok 2011-04-20 09:14:32 UTC
(In reply to comment #2)
> I don't think this is necessary for normal users, since most of them will never
> use more than two domains. As suggested, you can ask the glibc folks, but they
> are in general pretty grumpy, thus, don't expect too much help from there.
> That said, you should either stick with your custom-built glibc, or install a
> nameserver for your company.
> 
> Hope that helps :)

I now that normal users doesn't need it. But any OS have tousends of thinks that normal users never would need. But the professionals need some special thinks and we all want that thinks what we are using will always be better and better. 
My company is on of the biggest hosting company in Europe and we have more then 80.000 servers in our server rooms. And yes we have very very many nameservers but there are reasons why it's working how it woks. 

As I wrote, in internet have many people searched a way to change this what I'm asking for. But I couldn't find any solution for it. I was hoping I can share this idea with you so we could make it better for the some people who need it. 
I can just not hear more comments like "Windows is better, there it's just working and you need hours to solve it ...." 

If you really don't want to do it working better could you make me an patch file that I could install always a new version comes? 

greetings
Comment 5 Tolga Dalman 2011-04-20 09:45:25 UTC
(In reply to comment #4)
> My company is on of the biggest hosting company in Europe and we have more then
> 80.000 servers in our server rooms. And yes we have very very many nameservers
> but there are reasons why it's working how it woks. 

Sorry for my ignorance, but I can't think of a sane reason, why you should want to install all the stuff in the resolv.conf instead of using a local nameserver. 
You even state, that you are using nameservers already.
 
> As I wrote, in internet have many people searched a way to change this what I'm
> asking for. But I couldn't find any solution for it. I was hoping I can share
> this idea with you so we could make it better for the some people who need it. 

In my opinion, this is not the right place for this request. It is up to the glibc maintainers. However, almost all users will never need this "feature".

> I can just not hear more comments like "Windows is better, there it's just
> working and you need hours to solve it ...." 

IMHO, this argument is nonsense. Set up a local nameserver - and you are done, 
no ?

> If you really don't want to do it working better could you make me an patch
> file that I could install always a new version comes? 

To clarify: I'm not in charge here, so it is up to the Gentoo guys to decide :-)
However, I'm against such a patch in Gentoo.
Comment 6 SpanKY gentoo-dev 2011-04-30 00:36:01 UTC
if this isnt something we want to generally enable, then end users can already make a patch and put it into /etc/portage/patches/sys-libs/gblic/ for epatch_user.