Firewall Support Center

FortiGate FQDN Address Objects Not Working: DNS and Policy Troubleshooting

An FQDN address object can simplify a firewall rule, but it introduces a dependency on name resolution and the addresses the application actually uses. When a hostname resolves on a laptop but the connection misses the intended FortiGate policy, the useful question is whether the firewall object contains the destination address seen in that exact session.

This guide separates DNS resolution, object membership, policy matching, and application dependencies. The examples are illustrative, use documentation addresses, and are not lab results. Commands vary across FortiOS releases. Check local command help and the official reference for your build before using them.

Evidence checkpoints
01
Client DNS answer
02
FortiGate DNS cache
03
Address and policy match
04
Session and return traffic

Advance after verification; return to the earliest failed checkpoint.

1. Understand what the object represents

A standard FQDN address object represents IP addresses learned for a configured hostname. It is an address-matching mechanism. It is not a universal promise to permit every URL, redirect, authentication endpoint, or content server associated with a website.

For example, a browser opening app.example.com might also contact an identity provider, a content-delivery hostname, and an API. Allowing the address object for the first hostname does not establish that the other dependencies match. Record the complete transaction rather than broadening the object whenever a page is incomplete.

Keep standard and wildcard FQDN objects in separate investigation branches. Their learning behavior and dependencies can differ. In particular, do not assume that adding a wildcard causes the firewall to enumerate every possible hostname under a domain. Review the documented learning method for the object type and release.

2. Capture a reproducible failed session

Choose one client, hostname, application action, and timestamp. Record the client address, configured resolver, destination address used by the application, protocol, destination port, ingress interface, VDOM, and matched policy if a traffic log exists. Identify whether the failure is a policy deny, a timeout, or an application error.

Use a fresh application transaction after recording the current state. A browser can reuse an established connection, use a cached answer, or follow a redirect without sending another DNS query. Do not assume the most recent visible DNS answer is the address of every existing session.

Keep a working comparison narrow. Use the same client and destination at another time, or a known working client on the same intended path. Comparing two unrelated websites or two clients using different resolvers can introduce more differences than it resolves.

3. Inspect the object configuration

Review the exact object referenced by the rule. Check its type, hostname spelling, VDOM, and any relevant interface association or object-group membership. Confirm that you are viewing the installed configuration on the appliance handling the traffic, not a candidate change in a management system.

Read-only configuration inspection can help establish what was configured. Avoid publishing full output because it can disclose internal addresses and object names. Locate the specific object in the output rather than copying an entire configuration into an external ticket.

get system status
show firewall address
show system dns

Also verify whether the policy references an address group containing the intended object, an older similarly named object, or a completely different destination. Naming conventions reduce mistakes but do not prove the correct object is installed. Record the object name and the exact configured hostname in the incident worksheet.

4. Inspect resolved addresses and cache state

Use the FQDN diagnostic commands supported on the installed release. Newer releases can expose list-ip and list-all subcommands, while older documentation may show a different form. Start with help instead of repeatedly entering an obsolete command.

diagnose firewall fqdn ?
diagnose firewall fqdn list-ip
diagnose firewall fqdn list-all
diagnose test application dnsproxy 6

The goal is to record the addresses currently associated with the object and relevant cache timing. Fortinet documents the DNS-proxy diagnostic as a way to inspect FQDN cache information, including TTL-related values. Output format is release-dependent, so interpret fields using the matching documentation.

A missing address, an empty object, and a populated object that lacks the application's destination are different findings. Save the timestamp of the observation. If the address set changes during the incident, two screenshots taken several minutes apart may describe different states rather than a contradiction.

5. Compare the client's answer with the firewall's answer

On an approved client with DNS utilities installed, query the configured resolver explicitly. Replace the illustrative resolver and hostname. Query the record type relevant to the application and record the answer and time.

nslookup app.example.com 10.20.0.53

If available, a tool such as dig can show answer TTLs and CNAME relationships. The exact tool is less important than controlling the resolver and comparing the results with the address actually used by the application. Do not replace the organization's resolver with a public resolver as a routine production fix.

Client and firewall answers can differ because they use different resolvers, query at different times, use split DNS, or receive different service endpoints. A content-delivery system can legitimately return more than one address. The hypothesis to test is whether that difference explains the observed policy miss.

6. Use an evidence table

Create a row for each controlled test containing client IP, hostname, resolver, client answer, actual connection destination, firewall object addresses, and matched rule. This turns an intermittent complaint into a comparison another engineer can repeat.

In an illustrative example, a client receives 198.51.100.40 while the firewall object currently contains 198.51.100.60. A packet capture confirms the client connects to the first address. That supports investigating DNS-answer alignment or object learning. It does not prove that either address is malicious or that the entire application should be allowed by IP range.

In a second example, both the client destination and the object contain 198.51.100.40, but the connection still matches an unexpected rule. Move to policy order, source, zone or interface, service, schedule, and other criteria. Continuing to flush DNS would target a layer that the evidence already supports.

7. Check the firewall's own DNS path

The firewall's local name-resolution traffic may follow a different path from a user's forwarded query. Review configured DNS servers, reachability, routing, source selection, and service-specific settings for the deployment. Include VDOM context when relevant.

Test the actual dependency rather than relying on a successful ping to the resolver. A ping response does not prove DNS queries and answers traverse the required transport. Use a focused capture or resolver logs for one test window where operationally appropriate.

If the resolver is internal, check whether the firewall receives the intended internal answer. If an upstream device translates or filters the query, record that dependency. A firewall rule permitting a client to query DNS does not necessarily describe the firewall's own local-out DNS behavior.

8. Handle wildcard objects and encrypted DNS deliberately

Wildcard FQDN behavior requires special attention to how the firewall learns matching names and addresses. Inspect the release documentation and the actual DNS path. If the learning method relies on observed DNS traffic, a client using a different path can change what the firewall learns.

Browsers or applications using encrypted DNS may not send ordinary visible DNS queries through the path you expected. Do not disable encrypted DNS broadly as an improvised fix. Confirm the organization's resolver and endpoint policy, then align the documented design with the learning mechanism.

Test a specific approved hostname covered by the wildcard. Record whether the name is queried, which answer returns, and whether the object gains the relevant address. A wildcard object remaining empty is not the same as a populated object failing another policy criterion.

9. Separate destination matching from web filtering

An IP address can host multiple services and names. Address-object membership alone does not express a full application or URL policy. If the requirement is to permit one business application while restricting other services, determine which combination of address objects, services, application controls, and web controls fits the deployment.

Do not assume that every hostname-based rule validates the HTTP Host header or TLS server name simply because an FQDN object appears in the destination field. Inspect the actual policy type and security profiles. Explicit proxy deployments and flow-based forwarding can also require different diagnostics.

When a site opens but login fails, collect the dependency names and the failed session. When the firewall logs a web-category block, investigate that profile rather than treating it as an unresolved address object. Name resolution, policy selection, inspection, and application behavior are separate checkpoints.

10. Apply a narrow, evidence-backed correction

If the firewall cannot reach its approved resolver, repair that dependency. If the wrong object is referenced, correct the policy through change control. If client and firewall answers differ, align the resolver design or select a supported application-address strategy after reviewing the service's requirements.

Do not permanently substitute one observed cloud IP for a changing service without an ownership and maintenance plan. An IP that works today may change, and a broad provider range can permit unrelated services. Use the vendor's published service information and appropriate controls where available.

Avoid clearing every DNS cache or restarting inspection processes as a first response. These actions can affect unrelated sessions and erase useful evidence. If support recommends a release-specific refresh or process action, record its scope, impact, and rollback before executing it.

11. Validate across time, not only once

Repeat the same transaction after the correction and record the actual destination, object membership, matched policy, and application result. Test after a relevant DNS cache interval and during an address change if you can do so safely in a controlled environment.

Include a negative test approved by the security owner. The business application should work while unrelated access remains restricted. If the correction changed a shared object group, test representative policies that use that group as well.

Close the incident with the failure layer and evidence. A useful conclusion states that the firewall object lacked the client-selected destination because of a confirmed resolver difference, identifies the supported correction, and records repeated success through the intended rule. A one-time browser success without policy evidence leaves the original question unanswered.

Questions to include in an escalation

Provide the exact build, VDOM, object type, configured hostname, resolver design, timestamps, relevant FQDN diagnostic output, client DNS evidence, actual destination tuple, and the unexpected rule or error. Redact private infrastructure details before external sharing.

State whether the issue affects all clients, one resolver path, wildcard objects only, or one application dependency. This scope helps distinguish resolution failure, learning behavior, policy configuration, and a possible software defect without assuming that every intermittent website problem is DNS.

Quick diagnostic reference

Observed symptomNext evidence to collect
A hostname resolves but policy matching is intermittentCompare client answers with the firewall cache at the same time.

Official documentation

Fortinet reference 1: fqdn addresses

Fortinet reference 2: technical tip fqdn based firewall policies are not working intermittently 98492

Fortinet reference 3: troubleshooting tip how to verify the fdqn ip address in dns cache 98887

Related troubleshooting guides

Dns some domains fail tcp udp 53

Fortigate session table policy nat return traffic