# DNS Search List 6 entrys limit.

**URL:** <https://forums.suse.com/t/dns-search-list-6-entrys-limit/25181>\
**Category:** SLES Networking\
**Created:** [February 25, 2014, 3:17pm UTC](https://forums.suse.com/t/dns-search-list-6-entrys-limit/25181 "2014-02-25T15:17:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asafmagen](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@asafmagen](https://forums.suse.com/u/asafmagen)\
**Post date:** [February 25, 2014, 3:17pm UTC](https://forums.suse.com/t/dns-search-list-6-entrys-limit/25181/1 "2014-02-25T15:17:12Z")

</div>

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](http://test1.com). [test2.com](http://test2.com). [test3.com](http://test3.com) [test4.com](http://test4.com) [test5.com](http://test5.com) [test6.com](http://test6.com) [test7.com](http://test7.com)

- [test7.com](http://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?

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 25, 2014, 3:56pm UTC](https://forums.suse.com/t/dns-search-list-6-entrys-limit/25181/2 "2014-02-25T15:56:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![asafmagen](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@asafmagen](https://forums.suse.com/u/asafmagen)\
**Post date:** [February 25, 2014, 4:24pm UTC](https://forums.suse.com/t/dns-search-list-6-entrys-limit/25181/3 "2014-02-25T16:24:49Z")

</div>

ok thank you.
