This is a cache of https://docs.okd.io/4.16/networking/networking_operators/external_dns_operator/nw-creating-dns-records-on-infoblox.html. It is a snapshot of the page at 2026-02-11T02:39:59.393+0000.
Creating <strong>dns</strong> records on Infoblox - Networking Operators | Networking | OKD 4.16
×

To create dns records on Infoblox, use the External dns Operator. The Operator manages external name resolution for your cluster services.

Creating dns records on a public dns zone on Infoblox

To create dns records on Infoblox, use the External dns Operator. The Operator manages external name resolution for your cluster services.

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:

    $ 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 a list of routes by running the following command:

    $ oc get routes --all-namespaces | grep console
    Example output
    openshift-console          console             console-openshift-console.apps.test.example.com                       console             https   reencrypt/Redirect     None
    openshift-console          downloads           downloads-openshift-console.apps.test.example.com                     downloads           http    edge/Redirect          None
  3. Create a YAML file, for example, external-dns-sample-infoblox.yaml, that defines the Externaldns object:

    Example external-dns-sample-infoblox.yaml file
    apiVersion: externaldns.olm.openshift.io/v1beta1
    kind: Externaldns
    metadata:
      name: sample-infoblox
    spec:
      provider:
        type: Infoblox
        infoblox:
          credentials:
            name: infoblox-credentials
          gridHost: ${INFOBLOX_GRID_PUBLIC_IP}
          wapiPort: 443
          wapiVersion: "2.3.1"
      domains:
      - filterType: Include
        matchType: Exact
        name: test.example.com
      source:
        type: OpenShiftRoute
        openshiftRouteOptions:
          routerName: default

    where:

    metadata.name

    Specifies the External dns name.

    provider.type

    Specifies the provider type.

    source.type

    Specifies options for the source of dns records.

    routerName

    If the source type is OpenShiftRoute, you can pass the OpenShift Ingress Controller name. External dns selects the canonical hostname of that router as the target while creating a CNAME record.

  4. Create the Externaldns resource on Infoblox by running the following command:

    $ oc create -f external-dns-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.