domain-name-servers

Simon Hobson dhcp1 at thehobsons.co.uk
Thu Mar 21 07:33:46 UTC 2013


Tim Gustafson wrote:
>Currently we have:
>
>option domain-name-servers ns1.foo.com ns2.foo.com ns3.foo.com
>
>But that causes most of the DNS load to go to ns1.foo.com and ns2 and
>ns3 hardly get used at all.
>
>Is there any way to configure DHCP to issue name servers in
>round-robin order so that each successive clients gets a different
>primary name server?

No, but you can "sort of fudge it". Over time you clients will have virtually random addresses, if you split your pools then you can give different options for each pool :

pool a.b.c.50 a.b.c.99 ;
option domain-name-servers ns1.foo.com ns2.foo.com ns3.foo.com ;
}
pool a.b.c.100 a.b.c.149 ;
option domain-name-servers ns2.foo.com ns3.foo.com ns1.foo.com ;
}
pool a.b.c.150 a.b.c.199 ;
option domain-name-servers ns3.foo.com ns1.foo.com ns2.foo.com ;
}

This would be OK for a small setup, but of it's a large network then it would be a pain. But if you have a very large network (lots of subnets), then rotate the name servers by subnet.


More information about the dhcp-users mailing list