MAXNS in resolv.conf

Jim Reid jim at rfc1035.com
Fri Aug 25 18:11:52 UTC 2000


>>>>> "John" == John Chen <John_Chen at acml.com> writes:

    John> Is there any way to increase MAXNS nameserver in
    John> resolv.conf.  Currently Solaris only offers THREE
    John> nameservers, the fourth one will never be used.

Just about all UNIX resolvers work this way: see /usr/include/resolv.h.

    John> Could I increase it, how?

You could increase it. But it's a *lot* of work. First, you get a
source licence for Solaris. Then you fix the value of MAXNS in
<resolv.h> to whatever you think is suitable. After that, compile and
re-install everything. Build new shared libraries that use your
modified resolver. Then get dynamically linked applications to use
those libraries. Cross your fingers and hope all your software still
works and your support contracts are still valid. And as for future
patches and upgrades from Mr. Sun.....

Alternatively, you could just ensure that you have a maximum of three
nameserver entries in /etc/resolv.conf that point at reliable name
servers that are usually always up and running. 3 highly available
name servers should be more than enough for dependable name service.



More information about the bind-users mailing list