Created on 
    
	
		
		
		08-08-2024
	
		
		10:18 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
  Edited on 
    
	
		
		
		11-03-2025
	
		
		12:05 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 By  
				
		
		
			Jean-Philippe_P
		
		
		
		
		
		
		
		
	
			 
		
This article describes the steps to configure DHCP option 119 on FortiGate.
FortiOS.
Configuration Example Requirements:
Preparing for the configuration:
Note: If the length of the string is in double digits, then convert it to hex and use the hex value; do not use the double digit directly without converting to hex. This will result in FortiGate sending a malformed Option 119 packet, which causes the client PC not to recognize the domain search list.
In Wireshark, the domain search list appears as below instead of showing the correct FQDNs:
FQDN: <Unknown extended label>
For example, let's say a domain testwebsite.com has a length of testwebsite is 11 in decimal. Convert it to hexadecimal, which is 0b. So the length should be used as 0b and not as 11.
test1.local00test2.net00test3.net00.
057465737431056c6f63616c00057465737432036e657400057465737433036f726700.
FortiGate’s Configuration:
config system dhcp server
edit 1
config options
edit 1
set code 119
set value "057465737431056c6f63616c00057465737432036e657400057465737433036f726700"
next
end
next
end
Network -> Interface -> Select an interface -> DHCP server -> Advanced -> Additional DHCP option -> Create New.
Verification:
Use ipconfig /release and ipconfig /renew in a Windows PC to verify if the domains are received during the DHCP lease.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.