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.
I would use one of the API options and script it.
Another idea is to host the data in a different solution, and XFR zone transfer into DNS Express. Serve the DNS out of the GTM/DNS from memory.
I tried, but I don’t see any related for the Zone configuration.
Check out the SOAP interface which should still work: F5 Cloud Docs.
curl -sku <username>:<password> -X POST https://<BIG-IP_IP>/mgmt/tm/gtm/zone -H “Content-Type: application/json” -d ‘{
“name”: “example.org”,
“kind”: “tm:gtm:zone:zonestate”,
“view”: “/Common/example_org_external_view”,
“zoneType”: “master”,
“ttl”: 300,
“soa”: { “mName”: “gslbx-xx1.example.org”
},
“nameServers”: [
{
“name”: “gslbx-xx.example.org”,
“address”: “22.22.22.22” } ]
}’
will this works?