PDA

View Full Version : DNS Search List 6 entrys limit.



asafmagen
25-Feb-2014, 14:17
im trying to add more then 6 entrys to the /etc/resolv.conf but its ignoring the 7 entry.
i understand by looking to /usr/include/resolv.h file that there is 6 entry limitation.

# /etc/resolv.conf example
search test1.com. test2.com. test3.com test4.com test5.com test6.com test7.com


* test7.com is not being use when i try to resolve something that is in this suffix.

is there any way to increase this number?

jmozdzen
25-Feb-2014, 14:56
Hi asafmagen,,

> i understand by looking to /usr/include/resolv.h file that there is 6 entry limitation.
> is there any way to increase this number

Short answer: no.

Slightly longer answer: You might be able to increase that number and recompile all affected pieces of code. That'll be a hell lot of work, will break support and has not taken into consideration yet a) the time increase added for searches when hitting only with a suffix later in the list and b) the restrictions on maximum line length when reading resolv.conf (currently 255 characters, iirc).

Regards,
Jens

asafmagen
25-Feb-2014, 15:24
ok thank you.