Skip to Content

Solved: How do I setup PTR record for a specific IP?

This article describes how to setup PTR record for a specific IP and is ONLY focusing on the needed setup for the PTR record for a specific IP.

It is maybe necessary to preconfigure other respective zone setup and refer to the documentation at the end of this article for more information on configuring DNS zone.

Solution

It is necessary to setup PTR record for a specific IP.

For example, A/AAAA record for mail.example.com to 10.10.0.100 has been already setup but there is a requirement to setup PTR record for 10.10.0.100 as well.

In FortiADC, it is necessary to create a new Primary zone.

From GUI

Step 1: Go to the Global Load Balance > Zone Tools > Zone (tab) and select Create New. In this example, 0.10.10.in-addr.arpa is used as the zone name.

Make sure to select Primary as the zone type and for the domain name, use the first 3 octet number of the IP (in reverse order) followed by the .in-addr.arpa and a dot.

For example, the example IP is 10.10.0.100, and will use 0.10.10.in-addr.arpa.

Another example, for IP 192.168.200.20, use 20.200.168.in-addr.arpa.

Go to the Global Load Balance > Zone Tools > Zone (tab) and select Create New. In this example, 0.10.10.in-addr.arpa is used as the zone name.

Step 2: Under the Zone Records, select Create New and select PTR Record.

In the PTR Address option, use the last octet number.

For example, the example IP is 10.10.0.100 and will use 100 as the PTR Address.

Another example, for IP 192.168.200.20, use 20 as the PTR Address.

In the PTR Address option, use the last octet number.

Under the Zone Records, select Create New and select PTR Record.

From CLI

# config global-dns-server zone
edit "0.10.10.in-addr.arpa."
set domain-name 0.10.10.in-addr.arpa.
config ptr-record
edit 1
set ptr-address 100
set fqdn mail.example.com.
next
end
end
end

Verify the setup from the FortiADC.

Verify the setup from the FortiADC.

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.