Forum Discussion

ashk's avatar
ashk
Icon for Cirrus rankCirrus
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.