• Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • 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
  • 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
124
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.

ADVERTISEMENT

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:

  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

ADVERTISEMENT
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

Why Upgrade to a FortiGate Firewall? Enhanced Security, Visibility & Performance for Businesses
FortiGate

Why Upgrade to a FortiGate Firewall? Enhanced Security, Visibility & Performance for Businesses

Configure FortiGate as a DHCP Server via GUI and CLI
FortiGate

Configure FortiGate as a DHCP Server via GUI and CLI

Fortinet FortiGate Logging: Log Management and Best Practices
FortiGate

Fortinet FortiGate Logging: Log Management and Best Practices

FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting
FortiGate

FortiGate Antivirus: Configuration, Best Practices, and Troubleshooting

How to Reset a FortiGate Firewall to Factory Settings
FortiGate

How to Reset a FortiGate Firewall to Factory Settings

Fortinet FortiGate Policy Implementation
FortiGate

Fortinet FortiGate Policy Implementation

Next Post
Fortinet FortiGate: Network Monitoring with Custom Dashboards

Fortinet FortiGate: Network Monitoring with Custom Dashboards

Recommended

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Lesson 2: Linux Bash Variables

Lesson 2: Linux Bash Variables

Raspberry Pi Monitoring with Monit: Docker, Temperature, Network & More

Raspberry Pi Monitoring with Monit: Docker, Temperature & More

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nextcloud on Raspberry Pi 4 with Docker (Ubuntu 22.04)

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

Raspberry Pi Monitoring with Monit: Docker, Temperature, Network & More

Raspberry Pi Monitoring with Monit: Docker, Temperature & More

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install WordPress on Raspberry Pi 4 with Docker (Ubuntu 22.04)

  • 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
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.