Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know it's possible to assign at least two DNS servers via DHCP. For example:

option domain-name-servers,;

But I wanted to know if I could also add a third DNS or if this would even make sense? My idea is to have a third DNS as a backup.

Can I do this or should I write my dhcpd.conf via a script that checks if the primary DNS are up.


share|improve this question
up vote 1 down vote accepted

The spec for option type 6 has variable length and can support more than two entries. The length field is 8 bits and represents the number of bytes. 256 / 4 = 64 IP's. Clearly this is well beyond the number that the client must recognize, but specifying 3 entries is likely supported by many clients. It certainly won't hurt anything. orst-case the client will ignore the third.

Whether it makes sense or not is a function of your own infrastructure and availability. A WAN site might have two redundant servers on site and a third remote, for example. There are a number of mechanisms to improve availability of DNS infrastructure, many of which don't require additional IP's to be configured on the client side (i.e. anycast, load balancers).

share|improve this answer

you can put in as many as you want. 2 is common, 3 is not unreasonable and also somewhat common. 4+ would be edging in to overkill.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.