Skip to Content

Solved: How do I setup A/AAAA record for specific zone main domain?

This article describes how to setup A/AAAA record for specific zone main domain and is ONLY focusing on the needed setup for the A/AAAA record for the zone main domain.

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 have requirement to setup A/AAAA record for the main domain.

For example, A/AAAA record is already setup for www.example.com but there is a requirement to setup A/AAAA record for example.com as well.

In FortiADC, add the A/AAAA record for example.com under the same zone as the www.example.com.

From GUI

Step 1: Go to the Global Load Balance > Zone Tools > Zone (tab) -> <respective zone> to add the record.

In This example, example.com is used as the zone name.

Go to the Global Load Balance > Zone Tools > Zone (tab) -> <respective zone> to add the record.

Step 2: Under the Zone Records, select Create New and select A/AAAA Record.

In the Host Name option, instead of using the domain example.com, use the ‘@’.

IPv4 is used for this example.

Under the Zone Records, select Create New and select A/AAAA Record.  In the Host Name option, instead of using the domain example.com, use the '@'.  IPv4 is used for this example.

Zone records

From CLI

# config global-dns-server zone
edit "fqdn_generate_example.com."
set type fqdn-generate
set domain-name example.com.
config a-aaaa-record
edit 1
set hostname @
set ip 10.10.10.10
next
end
end

Verify the setup from the FortiADC:

Verify the setup from the FortiADC.

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that\'s 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 haven\'t 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\'re currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.