Skip to content

Instantly share code, notes, and snippets.

@superseb
Created October 27, 2017 09:34
Show Gist options
  • Save superseb/9bf843e6a2e82e8cf9f60ce350b7af82 to your computer and use it in GitHub Desktop.
Save superseb/9bf843e6a2e82e8cf9f60ce350b7af82 to your computer and use it in GitHub Desktop.
Infoblox external-dns testing

Test Infoblox external-dns

Download appliance (OVA)

Import OVA

  • Run VMware Fusion and import the OVA

Configuring Infoblox

  • Login to the console using admin and infoblox
  • Execute set temp_license and choose option 1. DNSone (DNS, DHCP).
  • Execute set temp_license and choose option 8. Add vNIOS license.
  • Execute set network so it's reachable over the network
  • Create a zone to be used by Rancher curl -k -u admin:infoblox -H "Content-Type: application/json" -X POST https://IP/wapi/v2.2.2/zone_auth -d '{"fqdn": "rancher.zone1.com"}'
  • Create a zone to create >1000 records in curl -k -u admin:infoblox -H "Content-Type: application/json" -X POST https://IP/wapi/v2.2.2/zone_auth -d '{"fqdn": "zone2.com"}'
  • Create >1000 records in zone2.com (for i in seq 1 1001; do curl -k -u admin:infoblox -H "Content-Type: application/json" -X POST https://IP/wapi/v1.0/record:host -d "{ \"ipv4addrs\":[{\"configure_for_dhcp\": false,\"ipv4addr\": \"10.10.10.12\"}],\"name\": \"newhost$i.zone2.com\",\"view\": \"default\"}"; done)

Launch Infoblox external DNS catalog item

  • Configure all the needed fields
@rawmind0
Copy link

Create a records for i in $(seq 1 1001); do curl -k -u admin:infoblox -H "Content-Type: application/json" -X POST https://IP/wapi/v1.5/record:a -d "{ \"ipv4addr\": \"10.10.10.12\",\"name\": \"newhost$i.zone2.com\",\"comment\": \"default\",\"ttl\": 300}"; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment