Creating DNS records on Infoblox

You can create DNS records on Infoblox using the Red Hat External DNS Operator.

Creating DNS records on a public DNS zone on Infoblox

You can create DNS records on a public DNS zone on Infoblox by using the Red Hat External DNS Operator.

Prerequisites

  • You have access to the OpenShift CLI (oc).

  • You have access to the Infoblox UI.

Procedure

  1. Create a secret object with Infoblox credentials by running the following command:

    1. $ oc -n external-dns-operator create secret generic infoblox-credentials --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_USERNAME=<infoblox_username> --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_PASSWORD=<infoblox_password>
  2. Get the routes objects to check your cluster domain by running the following command:

    1. $ oc get routes --all-namespaces | grep console

    Example Output

    1. openshift-console console console-openshift-console.apps.test.example.com console https reencrypt/Redirect None
    2. openshift-console downloads downloads-openshift-console.apps.test.example.com downloads http edge/Redirect None
  3. Create an ExternalDNS resource YAML file, for example, sample-infoblox.yaml, as follows:

    1. apiVersion: externaldns.olm.openshift.io/v1beta1
    2. kind: ExternalDNS
    3. metadata:
    4. name: sample-infoblox
    5. spec:
    6. provider:
    7. type: Infoblox
    8. infoblox:
    9. credentials:
    10. name: infoblox-credentials
    11. gridHost: ${INFOBLOX_GRID_PUBLIC_IP}
    12. wapiPort: 443
    13. wapiVersion: "2.3.1"
    14. domains:
    15. - filterType: Include
    16. matchType: Exact
    17. name: test.example.com
    18. source:
    19. type: OpenShiftRoute
    20. openshiftRouteOptions:
    21. routerName: default
  4. Create an ExternalDNS resource on Infoblox by running the following command:

    1. $ oc create -f sample-infoblox.yaml
  5. From the Infoblox UI, check the DNS records created for console routes:

    1. Click Data ManagementDNSZones.

    2. Select the zone name.