For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

PowerRangers's avatar
PowerRangers
Icon for Cirrostratus rankCirrostratus
Feb 07, 2024

F5 GTM DNS Zone Config via CLI

Hello Everyone, 

 

I am working on configuring 200+ Zones in the F5 like example below and I wanted to know is there a way I can do them via CLI or any script? 

I have different set of domain names unique and top-level. not a subdomain. 

 

$TTL 300    ; 5 minutes

example.org      IN SOA  gslbx-xx1.example.org. hostmaster.gslbx-xx1.example.org. (

            NS  gslbx-xx.example.org.

$TTL 0  ; 0 seconds

            A   6.6.6.6

            A   7.7.7.7

$ORIGIN example.org.

$TTL 300    ; 5 minutes

gslbx-xx        A   11.11.11.11

gslbx1-xx       A   22.22.22.22

$TTL 0  ; 0 seconds

www         CNAME   example.org.

 

5 Replies