Cybersecurity Forum

This forum is for all security enthusiasts to discuss Fortinet's latest & evolving technologies and to connect & network with peers in the cybersecurity hemisphere. Share and learn on a broad range of topics like best practices, use cases, integrations and more. For support specific questions/resources, please visit the Support Forum or the Knowledge Base.

MichNiel
New Contributor

Fortiauthenticator / IP to hostname

Hey

Is it possible to retrieve the hostname from ip using API?

Thanks in advance.
1 REPLY 1
ashishrathee
Staff
Staff

Yes, it is possible to retrieve the hostname from an IP address using the FortiNAC API. You can achieve this by making a GET request to the endpoint "/host/by-ip/{ip}" where you replace "{ip}" with the specific IP address you want to query. The API will return the Host Record that matches the supplied IP address, including details such as hostname, owner, policy, hardware type, and more.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.