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
Just curious, have you asked upstream to change the default yet? What was the response? http://www.gnu.org/software/libc/libc.html
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 :)
(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
(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
(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.
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.