How to find FQDN

A Fully Qualified Domain Name (FQDN) is a complete domain name that identifies a specific device, server, or service within a network. FQDNs play a critical role in DNS, Active Directory, cloud infrastructure, and enterprise networking by providing a consistent way to locate resources. Whether you're troubleshooting connectivity issues, configuring applications, managing servers, or setting up network services, there may be times when you need to identify a device's FQDN. Fortunately, there are several ways to find this information on Windows, macOS, Linux, and network infrastructure.

What is an FQDN?

An FQDN is the complete domain name assigned to a device or service.

For example: server01.example.com

In this example:

  • server01 is the hostname
  • example.com is the domain name

Together, they form the fully qualified domain name. Unlike a simple hostname, an FQDN includes the entire DNS path required to uniquely identify a system.

Why might you need an FQDN?

Common reasons include:

  • DNS troubleshooting
  • Active Directory administration
  • Server management
  • Application configuration
  • SSL certificate deployment
  • Cloud infrastructure management
  • Network diagnostics

Many enterprise applications rely on FQDNs rather than IP addresses or hostnames.

How to find an FQDN on Windows

Windows provides several methods for viewing a device's FQDN.

Method 1: Use Command Prompt

  1. Open Command Prompt.
  2. Run: hostname

This displays the hostname.

To view the full domain information, run: ipconfig /all

Look for: Primary DNS Suffix

Combine the hostname and DNS suffix to identify the FQDN.

Method 2: Use System Properties

  1. Right-click This PC.
  2. Select Properties.
  3. Open Advanced system settings.
  4. Review the computer name and domain information.

If the device is joined to a domain, the FQDN can usually be derived from these settings.

How to find an FQDN using PowerShell

PowerShell provides a simple method for retrieving the full domain name.

Run: [System.Net.Dns]::GetHostByName($env:computerName).HostName

The command returns the device's fully qualified domain name when available.

How to find an FQDN on macOS

Steps

  1. Open Terminal.
  2. Run: hostname -f

If configured properly, macOS will return the full domain name. You can also review: System Settings > General > Sharing to view hostname information.

How to find an FQDN on Linux

Most Linux distributions support a simple command.

Run: hostname -f

or: hostname --fqdn

The system will return the configured FQDN if DNS and hostname settings are configured correctly.

How to find an FQDN using DNS tools

DNS utilities can also help identify FQDN information.

nslookup

Run: nslookup <IP address>

This performs a reverse lookup and may return the associated FQDN.

ping

Run: ping -a <IP address>

on Windows to attempt hostname resolution.

These tools are often used during network troubleshooting.

FQDN vs. hostname

The terms are sometimes used interchangeably, but they are not the same.

Hostname

Example: server01

FQDN

Example: server01.example.com

The FQDN provides the complete DNS path, making it globally unique within the DNS hierarchy.

Common issues when identifying an FQDN

Administrators may encounter:

  • Missing DNS suffixes
  • Incorrect hostname configuration
  • DNS resolution failures
  • Active Directory misconfigurations
  • Incomplete domain membership

In these situations, reviewing DNS and network settings can help resolve the issue.

Best practices for FQDN management

To maintain reliable DNS environments:

  • Use consistent naming conventions
  • Maintain accurate DNS records
  • Document hostname assignments
  • Review DNS configurations regularly
  • Verify domain membership settings
  • Test name resolution after changes

Proper DNS management improves both reliability and troubleshooting efficiency.