DHCP: is DNS configuration optional?

1

As suggested by title: is there possibility that after a successful DHCP session, DNS server is not configured?

lang2

Posted 2012-07-16T07:40:05.010

Reputation: 1 830

Are you asking if DHCP can lease addresses without giving DNS information? – VBwhatnow – 2012-07-16T08:08:40.767

Answers

3

Yes. A DHCP server is not required to provide DNS information when it leases an IP address.

RFC2131 section 4.3.1:

The server MUST supply as many of the requested parameters as possible and MUST omit any parameters it cannot provide.

So technically, it is required to provide them if requested and if it can provide them. But it need not provide DNS information if it cannot provide them or if the client doesn't specifically request them.

David Schwartz

Posted 2012-07-16T07:40:05.010

Reputation: 58 310

What is the host name if I ping -a a leased static IP? – Sun – 2016-05-27T01:46:20.913

is there a reference? – lang2 – 2012-07-16T08:21:55.100

1RFC2131 section 4.3.1: "The server MUST supply as many of the requested parameters as possible and MUST omit any parameters it cannot provide." (So technically, it is required to provide them if requested and if it can provide them. But it need not provide DNS information if it cannot provide them or if the client doesn't specifically request them.) – David Schwartz – 2012-07-16T08:26:46.233