Technical Tip: DNS resolution of hostname to IP
Description
This article describes how to resolve a hostname to the IP address from the FortiGate CLI.
Scope
For all supported Fortios versions from v6.2.x to v7.6.x.
Solution
Here is an example with mylabdomain.com, returning IP address 172.31.1.1
PING mylabdomain.com ( 172.31.1.1 ) : 56 data bytes
64 bytes from 172.31.1.1: icmp_seq=0 ttl=245 time=75.4 ms
FGT # execute traceroute mylabdomain.com
traceroute to mylabdomain.com ( 172.31.1.1 ), 32 hops max, 72 byte packets
1 172.31.1.1 0 ms 0 ms 0 ms
If the resolution does not work, refer to:
