• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Network Tutorials FortiGate

Fortinet FortiGate: DNS Server Configuration

neo by neo
June 12, 2025
in FortiGate
0
Fortinet FortiGate: DNS Server Configuration

Fortinet FortiGate: DNS Server Configuration

0
SHARES
260
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

DNS (Domain Name System) Server

Domain Name System (DNS) is a crucial service in networking that translates human-readable domain names (like https://defencedev.com) into IP addresses. Proper DNS configuration on network devices is essential reliable name resolution, ensuring users can access web and other services. In this article, we’ll guide you through configuring DNS on a FortiGate firewall.

More information about FortiGate DNS configuration you can found on the link .

Steps to Configure DNS Server on FortiGate Interface

Step 1: Access the FortiGate Web Interface

  • Open a web browser and enter the IP address of your FortiGate device.
  • Login using your admin credentials.

Step 2: Navigate to DNS Settings

Once logged in, go to:

  • Network > DNS.
  • You will see options for both System DNS and DNS servers.

Step 3: Configure System DNS

DNS Settings on FortiGate
DNS Settings on FortiGate

The System DNS servers are used by FortiGate itself to resolve domain names for its services (e.g., checking updates, remote logging). To configure:

  • Under Network > DNS:
    • Select System DNS.
    • Enter the primary and secondary DNS servers. Common choices include Google’s DNS (8.8.8.8 and 8.8.4.4) or Cloudflare’s DNS (1.1.1.1 and 1.0.0.1) or use FortiGuard Servers.
    • Click Apply to save the settings.

Step 4: Configure DNS Forwarding

FortiGate can also act as a DNS forwarder, meaning it can resolve DNS queries for devices on the network. This offloads DNS lookups to a trusted source and reduces DNS-related traffic.

To configure DNS forwarding:

ADVERTISEMENT
  1. Go to Network > DNS Servers.
  2. In the section DNS Service on Interface create a new DNS service on your internal network interface.
  3. If you need to resolve something from local netowork add it in the section DNS Database
  4. Once configured, click Apply.
Create a DNS Service
Create a DNS Service
FortiGate DNS Server Configuration
FortiGate DNS Server Configuration

Step 5: Enable DNS on Local interface

  1. Go to Network > Interface
  2. Select Internal interface.
  3. In section DNS Server select Same as Interface IP to use FortiGate DNS Server in your local network.
DHCP Server Settings to use FortiGate as DNS Server
DHCP Server Settings to use FortiGate as DNS Server

Adding a Local DNS Override on FortiGate (DNS Database Entry)

If you want a domain like raspberry.defencedev.com to resolve to a local IP address (e.g., 192.168.20.50) within your network, you can configure a DNS override on the FortiGate firewall.

Steps to DNS Override Configuration

Step 1: Add a Local DNS Record in FortiGate DNS Database

  1. Go to Network > DNS Database in the FortiGate GUI.
  2. Click Create New to create a new DNS zone.
  3. Fill in the DNS zone details:
  • Type: Select Master (since FortiGate will be authoritative for this zone)
  • View: Select Shadow (for most local network use cases, Public is appropriate)
  • DNS Zone: Enter the main domain, for example: defencedev.com
  • Domain Name: Same as the DNS Zone, e.g., defencedev.com
  • Hostname of Primary Master: dns
  • Contact Email Address: hostmaster or your email, but formatted with a dot instead of @ (e.g., admin.defencedev.com)
  • TTL: Leave default or set to something like 1 day
  • Authoritative: Select Yes (because FortiGate is authoritative for this zone)
  1. Click OK or Apply to save the DNS zone.

Step 2: Adding DNS Entries to the Zone

Once the DNS zone is created, you can add DNS records under it:

ADVERTISEMENT
ADVERTISEMENT
  1. In the Add DNS Entry section:
  • Type: Choose A (for IPv4 address)
  • Hostname: Enter the hostname part, e.g., raspberry
  • Fully Qualified Domain Name (FQDN): Enter the full domain if needed – in my case is automatically done, e.g., raspberry.defencedev.com
  • IP Address: Enter the local IP address of your device, e.g., 192.168.20.77
  • TTL: Leave default (e.g., 3600)
  • Status: Enable the record
  1. Click Add or Save.
Add a Local DNS Record Using FortiGate DNS Database
Add a Local DNS Record Using FortiGate DNS Database

What This Does

  • FortiGate will now be authoritative for the defencedev.com zone and answer DNS queries for that domain.
  • When clients on your network try to access raspberry.defencedev.com, FortiGate will resolve it to the local IP 192.168.1.50.
  • This allows devices inside your network to reach your Raspberry Pi (or other local device) by name without going to external DNS servers.

About The Author

neo

See author's posts

Tags: fortigate
ADVERTISEMENT
Previous Post

Fortinet FortiGate: QoS, Traffic Shapers and Bandwidth Limitation

Next Post

Fortinet FortiGate: Network Monitoring with Custom Dashboards

neo

neo

Related Posts

Home Lab with Fortinet FortiGate 60D Firewall
FortiGate

Home Lab with Fortinet FortiGate 60D Firewall

My Ultimate FortiGate Command Cheat Sheet
FortiGate

My Ultimate FortiGate Command Cheat Sheet

Setting Up IPS (Intrusion Detection System) Profiles on FortiGate to Detect Web Attacks
FortiGate

Setting Up IPS (Intrusion Detection System) Profiles on FortiGate to Detect Web Attacks

Protect a Self-Hosted Application from Brute Force Attacks with FortiGate
FortiGate

How to Protect a Self-Hosted Application from Brute Force Attacks with FortiGate

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications
FortiGate

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting
FortiGate

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

Next Post
Fortinet FortiGate: Network Monitoring with Custom Dashboards

Fortinet FortiGate: Network Monitoring with Custom Dashboards

Recommended

Lesson 11: Practical Linux Bash Examples and Projects

Lesson 11: Practical Linux Bash Examples and Projects

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Home Lab with Fortinet FortiGate 60D Firewall

Home Lab with Fortinet FortiGate 60D Firewall

My Way to Organize a Git Repository for Bash, Mikrotik, FortiGate and other Scripts

My Way to Organize a Git Repository for Bash, Mikrotik, FortiGate and other Scripts

Categories

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos
ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Recent News

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Home Lab with Fortinet FortiGate 60D Firewall

Home Lab with Fortinet FortiGate 60D Firewall

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.