| Description | This article explains why users can get the FortiGate system DNS server address, instead of the DHCP relay address. |
| Scope | FortiOS 6.4.x. |
| Solution |
Consider the scenario:
1) DHCP relay is configured on the interface where the DHCP server is also configured:
# config system interface --truncated--
# config system dhcp server edit 1 next
FortiGate system DNS:
FGT1 # get system dns
The correct IP address for the user:
IP: 192.168.32.126. DNS: 10.100.45.111 and 10.100.45.112.
Sometimes the user can get FortiGate system DNS server, which is unintended:
IP: 192.168.32.126. DNS: 208.91.112.53 and 208.91.112.52.
This could happen because of a dual conflicting config at port3. Port3 acts as a 'DHCP server' which offers a DNS server, at the same time it acts as a 'DHCP relay' and makes a DHCP request to an external DHCP server to obtain an IP address and DNS server address for the user.
Solution:
# config system dhcp server edit 1 set dns-server1 10.100.45.111
Related Documentation: https://docs.fortinet.com/document/fortigate/6.2.1/cli-reference/59620/system-dhcp-server |
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.