-
The Mysterious Microsoft DHCP Option ID 81
April 16, 2020
Recently I worked on a project where I needed to create a PowerShell script to automate the creation of numerous Microsoft DHCP servers and all their scopes, scope options, reservations, all settings. The original DHCP servers were in an old Active Directory domain, and a new AD Forest was created with a different networking scheme. I used the output from the DHCP documentation script to gather all the info needed, but there was one scope option that had me stumped.
Almost every DHCP Scope had an Option ID of 81, and the Value number was different for a lot of the scopes.
Scope Options
Option Name 00081 Vendor Standard Value 7 Policy Name None There is no Option ID 81 in the Predefined Options and Values, as shown in Figure 1.
Here is what I found out.
When a new DHCP Scope is created (at least on Windows Server 2016 or 2019), there is no scope Option ID 81, as shown in Figure 2.
Why? Apparently, because Name Protection is enabled by default on a new scope, as shown in Figure 3.
If Name Protection is disabled, as shown in Figure 4, Option ID 81 mysteriously appears, as shown in Figure 5.
What happens if Name Protection is enabled again, as shown in Figure 6?
Option 81 is still there, as shown in Figure 7, with a different numeric Value.
Why all the fuss? I am trying to recreate all the scopes and related settings by just changing the network data. I see an Option 81 with no way to set it or control it.
The only information I can find on Option ID 81 from Microsoft states that the option is used for the client to tell DHCP what its FQDN is.
When a DHCP server registers and updates DNS pointer (PTR) and address (A) resource records on behalf of its DHCP-enabled clients, it uses the information contained within an additional DHCP option: the Client FQDN option (option 81), which permits a client to provide its FQDN and any instructions to the DHCP server that is used to process DNS dynamic updates on its behalf.
If you like to be confused, read the information at this link.
2.2.7 DHCPv4 Option Code 81 (0x51) – Client FQDN Option
I decided just to ignore Option ID 81, just like I do Option ID 51, in the script.
BTW, I had to review why I skipped Option ID 51 and came across an interesting (to me) article.
YOU SHOULD CARE ABOUT DHCP OPTION 51
What I also found out about Option ID 81, is that by selecting or unselecting the various options, the numeric Value changes with no discernable pattern (at least to me).
I have no clue why Option ID 81 exists. All the DNS settings for a scope are obtained by running Get-DHCPServerV4DnsSetting -ScopeId, as shown in Figure 8.
For me, for this project, I will just ignore Option ID 81 and get on with life. The DHCP documentation script is updated to ignore Option ID 81.
Thanks
Webster
3 Responses to “The Mysterious Microsoft DHCP Option ID 81”
Leave a Reply
December 1, 2021 at 4:42 pm
I activated option 81 in every scope of a dhcp server. It works fine dealing with some issues but sometimes it has problems when you have a laptop that moves from one scope to another. In this situation you have two different IP leases active in two different scopes and dhcp first update DNS record with the new IP lease and a couple of minutes later it updates the record with the old one.
Is the a definitive way to disable Option 81 as you see in a newly created scope?
December 2, 2021 at 4:49 pm
Remove-DhcpServerv4OptionValue -ComputerName -OptionId 81 will remove OptionID 81. I have no idea what the side effect is.
Get-DhcpServerv4OptionValue -ComputerName labdc1
OptionId Name Type Value VendorClass UserClass PolicyName
——– —- —- —– ———– ——— ———-
81 DWord {53}
15 DNS Domain Name String {LabADDomain.com}
3 Router IPv4Add… {192.168.1.1}
6 DNS Servers IPv4Add… {192.168.1.201, 1…
remove-DhcpServerv4OptionValue -ComputerName labdc1 -OptionId 81
Get-DhcpServerv4OptionValue -ComputerName labdc1
OptionId Name Type Value VendorClass UserClass PolicyName
——– —- —- —– ———– ——— ———-
15 DNS Domain Name String {LabADDomain.com}
3 Router IPv4Add… {192.168.1.1}
6 DNS Servers IPv4Add… {192.168.1.201, 1…
Thanks
Webster
April 1, 2021 at 12:09 pm
Option 81 manages the “”Always dynamically update DNS records” option of the scope…
I do not understand why the value can be different, though…
Best I can tell :
-Option 81 with a value of 7 is the same as “Enable DNS dynamic updates if requested by DHCP” and “Dynamically update DNS records for DCP clients that do not request updates (windows NT 4.0)”
-Option 81 with a value of 23 is the same as “Enable DNS dynamic updates, always dynamically update DNS records”