Retrieve DNS Record operation

The Retrieve DNS Record operation finds the type of DNS record that you specify from the Infoblox application.

For retrieving a DNS record, you can use the following elements in the adapter request:

  • <name>
  • <dns-view>
  • <zone>
  • <comment>
  • <extensible-attributes>

    You must specify at least one element in the adapter request to retrieve the DNS records.

    Adapter request elements for the Retrieve DNS Record operation

Element

Description

Required

<operation-name>

Specifies the name of the operation: create-dns-record

Yes

<target>

Contains the following elements:

  • <host>
  • <user-name>
  • <password>
  • <timeout-secs>

Conditional:

  • Required if not specified in the configuration
  • If specified in the configuration and request, the value in the request overrides the value in the configuration

<host>

Specifies the host name (fully qualified domain name) or IP address of the Infoblox Grid Manager

Valid value: Any string

Conditional:

  • Required if not specified in the configuration
  • If specified in the configuration and request, the value in the request overrides the value in the configuration

<user-name>

Specifies the user name required to connect to the Infoblox Grid Manager

Valid value: Any string

Conditional:

  • Required if not specified in the configuration
  • If specified in the configuration and request, the value in the request overrides the value in the configuration

<password>

Specifies the password that corresponds to <user-name>

The <password> element can contain an encryption-type attribute (the Encryption Type field on the form in the form view) that specifies whether the password is encrypted.

Valid value for <password>: Any string

Valid values for encryption-type: base64, plain (default)

Conditional:

  • Required if not specified in the request
  • If specified in the configuration and request, the value in the request overrides the value in the configuration

<timeout-secs>

Specifies the time, in seconds, after which the request expires

Valid values: Any integer

Default value: 60 seconds

No

<parameters>

Contains the elements required to execute the operation

Yes

<record-type>

Specifies the type of the DNS record that you want to retrieve

Valid values:

  • A
  • PTR
  • SRV
  • CNAME
  • TXT
  • MX

    You can specify only one type of record to retrieve in one request.

Yes

<name>

Specifies the name of the record that you want to retrieve

You can specify the name of the DNS record based on the type of record that you want to retrieve. 

Values for each record type:

  • A: Host name in an FQDN format.
  • PTR: Host name to which the PTR record is pointed to.
  • SRV: Name in an FQDN format.
  • CNAME: Host name in an FQDN format.
  • TXT: Host name in an FQDN format.
  • MX: Domain name in an FQDN format.

Conditional; required if you want to retrieve DNS that match the <name>

<dns-view>

Specifies the DNS view in which the record is created, which you want to retrieve

If you do not specify a view, by default, records from all the DNS views appear.

Conditional; required if you want to retrieve DNS that match the <dns-view>

<zone>

Specifies the zone in which the DNS record is created

Note: If you specify just the zone and no DNS view, then records in the Default DNS view only are retrieved.

Conditional; required if you want to retrieve DNS that match the <zone>

<comment>

Specifies any additional information provided in the record by the user

Conditional; required if you want to retrieve DNS that match the <name>

<extensible-attributes>

Specifies the key-value pair that contains any additional information about the record

You can retrieve records based on multiple attributes.

Conditional; required if you want to retrieve DNS that match the <extensible-attributes>

 Sample

<items>
    <item>
        <target>
            <host>localhost</host>
            <user-name>admin</user-name>
            <password encryption-type="Base64">YWRtaW4=</password>
            <timeout-secs>120</timeout-secs>
        </target>
           <parameters>
            <record-type>A</record-type>
            <name>admin.demo.com</name>
           </parameters>
      </item>
</items>


 Sample adapter response for the Retrieve DNS Record operation based on the name

<infoblox-vnios-response>
  <metadata>
    <response-count>1</response-count>
    <status>success</status>
  </metadata>
  <responses>
    <retrieve-dns-record-response>
      <metadata>
        <os-id>Linux</os-id>
        <os-version>2.6.18-164.el5</os-version>
        <os-arch>amd64</os-arch>
        <status>success</status>
        <target>10.128.36.17</target>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "/home/shantanu/760205/cdp/server/grids/GRID1/library/adapters/implementations/bmc-adapter-infoblox-nios-actor_20.13.01.00_2/retrieve_dns_record.pl"  "10.128.36.17" "admin" "infoblox" "name:host1.demo.com" "record-type:MX"</command>
            <line-count>12</line-count>
            <execution-milliseconds>3198</execution-milliseconds>
            <exit-code>0</exit-code>
            <status>success</status>
          </metadata>
          <output>
            <line index="1">Response Code:0</line>
            <line index="2">Response Description:Operation succeeded</line>
            <items>
              <item>
                <record-type>MX</record-type>
                <name>host1.demo.com</name>
                <comment>updated comment</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>120</ttl>
                <mx-exchanger>10.0.0.12</mx-exchanger>
                <mx-preference>30</mx-preference>
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
            </items>
          </output>
        </command-output>
      </commands-output>
    </retrieve-dns-record-response>
  </responses>
</infoblox-vnios-response>


 Sample


<items>
    <item>
        <target>
            <host>localhost</host>
            <user-name>admin</user-name>
            <password encryption-type="Base64">YWRtaW4=</password>
            <timeout-secs>120</timeout-secs>
        </target>
           <parameters>
            <record-type>A</record-type>
            <comment>This is a DNS record</comment>
           </parameters>
      </item>


 Sample adapter response for retrieving all DNS records based on the comment

<infoblox-vnios-response>
  <metadata>
    <response-count>1</response-count>
    <status>success</status>
  </metadata>
  <responses>
    <retrieve-dns-record-response>
      <metadata>
        <os-id>Linux</os-id>
        <os-version>2.6.18-164.el5</os-version>
        <os-arch>amd64</os-arch>
        <status>success</status>
        <target>10.128.36.17</target>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "/home/shantanu/760205/cdp/server/grids/GRID1/library/adapters/implementations/bmc-adapter-infoblox-nios-actor_20.13.01.00_2/retrieve_dns_record.pl"  "10.128.36.17" "admin" "infoblox" "comment:using comment" "record-type:A"</command>
            <line-count>39</line-count>
            <execution-milliseconds>3773</execution-milliseconds>
            <exit-code>0</exit-code>
            <status>success</status>
          </metadata>
          <output>
            <line index="1">Response Code:0</line>
            <line index="2">Response Description:Operation succeeded</line>
            <items>
              <item>
                <record-type>A</record-type>
                <name>admin.demo.com</name>
                <comment>using comment</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl />
                <ip-address>10.0.0.14</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
            </items>
          </output>
        </command-output>
      </commands-output>
    </retrieve-dns-record-response>
  </responses>
</infoblox-vnios-response>


 Sample

<items>
    <item>
        <target>
            <host>localhost</host>
            <user-name>admin</user-name>
            <password encryption-type="Base64">YWRtaW4=</password>
            <timeout-secs>120</timeout-secs>
        </target>
           <parameters>
            <record-type>A</record-type>
            <zone>forwardmappingzone</zone>
           </parameters>
      </item>
</items>


 Sample adapter response for retrieving all DNS records based on the zone

<infoblox-vnios-response>
  <metadata>
    <response-count>1</response-count>
    <status>success</status>
  </metadata>
  <responses>
    <retrieve-dns-record-response>
      <metadata>
        <os-id>Linux</os-id>
        <os-version>2.6.18-164.el5</os-version>
        <os-arch>amd64</os-arch>
        <status>success</status>
        <target>10.128.36.17</target>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "/home/shantanu/760205/cdp/server/grids/GRID1/library/adapters/implementations/bmc-adapter-infoblox-nios-actor_20.13.01.00_2/retrieve_dns_record.pl"  "10.128.36.17" "admin" "infoblox" "zone:demo.com" "record-type:A"</command>
            <line-count>446</line-count>
            <execution-milliseconds>4767</execution-milliseconds>
            <exit-code>0</exit-code>
            <status>success</status>
          </metadata>
          <output>
            <line index="1">Response Code:0</line>
            <line index="2">Response Description:Operation succeeded</line>
            <items>
              <item>
                <record-type>A</record-type>
                <name>bmc1.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>0</ttl>
                <ip-address>49.50.51.16</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
              <item>
                <record-type>A</record-type>
                <name>bmc55.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>0</ttl>
                <ip-address>49.50.51.9</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
              <item>
                <record-type>A</record-type>
                <name>bmc55.demo.com</name>
                <comment>user comment99999</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>450000</ttl>
                <ip-address>49.50.51.5</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>India</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>bmcee55.demo.com</name>
                <comment>user comment99999</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>450000</ttl>
                <ip-address>49.50.51.6</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>India</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>t1.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>0</ttl>
                <ip-address>49.50.51.13</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
              <item>
                <record-type>A</record-type>
                <name>t1_.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>0</ttl>
                <ip-address>49.50.51.14</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
              <item>
                <record-type>A</record-type>
                <name>admin112.demo.com</name>
                <comment>user comment</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>1</ttl>
                <ip-address>10.0.0.0</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>updatedarecord.demo.com</name>
                <comment>updated comment by adapter 1</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl>240</ttl>
                <ip-address>10.0.0.23</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site2</value>
                  </attribute>
                  <attribute>
                    <key>Building</key>
                    <value>ICC</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>admin.demo.com</name>
                <comment>using comment</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl />
                <ip-address>10.0.0.14</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>bmc1.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl />
                <ip-address>111.111.111.6</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
              <item>
                <record-type>A</record-type>
                <name>admin.demo.com</name>
                <comment>Demo A record created through Adapter</comment>
                <disable>true</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl />
                <ip-address>10.0.0.12</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>aaaadmin.demo.com</name>
                <comment />
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>default</dns-view>
                <ttl />
                <ip-address>10.128.99.7</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible_attributes />
              </item>
            </items>
          </output>
        </command-output>
      </commands-output>
    </retrieve-dns-record-response>
  </responses>
</infoblox-vnios-response>


 Sample

<items>
    <item>
        <target>
            <host>localhost</host>
            <user-name>admin</user-name>
            <password encryption-type="Base64">YWRtaW4=</password>
            <timeout-secs>120</timeout-secs>
        </target>
           <parameters>
            <record-type>A</record-type>
            <extensible-attributes>
                <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                </attribute>
            </extensible-attributes>
           </parameters>
      </item>
</items>


 Sample adapter response for retrieving all DNS records based on the extensible attributes

<infoblox-vnios-response>
  <metadata>
    <response-count>1</response-count>
    <status>success</status>
  </metadata>
  <responses>
    <retrieve-dns-record-response>
      <metadata>
        <os-id>Linux</os-id>
        <os-version>2.6.18-164.el5</os-version>
        <os-arch>amd64</os-arch>
        <status>success</status>
        <target>10.128.36.17</target>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "/home/shantanu/760205/cdp/server/grids/GRID1/library/adapters/implementations/bmc-adapter-infoblox-nios-actor_20.13.01.00_2/retrieve_dns_record.pl"  "10.128.36.17" "admin" "infoblox" "record-type:A" "extensible-attributes:{'Site'=&gt;'sample site',},"</command>
            <line-count>335</line-count>
            <execution-milliseconds>3582</execution-milliseconds>
            <exit-code>0</exit-code>
            <status>success</status>
          </metadata>
          <output>
            <line index="1">Response Code:0</line>
            <line index="2">Response Description:Operation succeeded</line>
            <items>
              <item>
                <record-type>A</record-type>
                <name>forwardmappingzone_testview</name>
                <comment>This is demo A record</comment>
                <disable>false</disable>
                <zone>forwardmappingzone_testview</zone>
                <dns-view>Test DNS View</dns-view>
                <ttl>1</ttl>
                <ip-address>10.0.0.13</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>A</record-type>
                <name>forwardmappingzone_testview</name>
                <comment>This is demo A record</comment>
                <disable>false</disable>
                <zone>forwardmappingzone_testview</zone>
                <dns-view>Test DNS View</dns-view>
                <ttl>1</ttl>
                <ip-address>10.10.10.14</ip-address>
                <netbios-name />
                <os />
                <discovered-mac-address />
                <last-discovered />
                <first-discovered />
                <discovered-name />
                <discoverer />
                <attached-device-description />
                <attached-device-address />
                <attached-device-name />
                <attached-device-port-description />
                <attached-device-port-name />
                <attached-device-port />
                <attached-device />
                <port-duplex />
                <port-link />
                <port-speed />
                <port-status />
                <vlan-description />
                <vlan-name />
                <vlan />
                <virtual-host-adapter />
                <virtual-datacenter />
                <virtual-cluster />
                <virtual-entity-name />
                <virtual-entity-type />
                <virtual-host />
                <virtual-switch />
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
             </item>
            </items>
          </output>
        </command-output>
      </commands-output>
    </retrieve-dns-record-response>
  </responses>
</infoblox-vnios-response>
 


 Sample

<infoblox-vnios-response>
  <metadata>
    <response-count>1</response-count>
    <status>success</status>
  </metadata>
  <responses>
    <retrieve-dns-record-response>
      <metadata>
        <os-id>Linux</os-id>
        <os-version>2.6.18-164.el5</os-version>
        <os-arch>amd64</os-arch>
        <status>success</status>
        <target>10.128.36.17</target>
      </metadata>
      <commands-output>
        <command-output>
          <metadata>
            <command>perl "/home/shantanu/760205/cdp/server/grids/GRID1/library/adapters/implementations/bmc-adapter-infoblox-nios-actor_20.13.01.00_2/retrieve_dns_record.pl"  "10.128.36.17" "admin" "infoblox" "dns-view:Test DNS View" "record-type:TXT"</command>
            <line-count>29</line-count>
            <execution-milliseconds>4071</execution-milliseconds>
            <exit-code>0</exit-code>
            <status>success</status>
          </metadata>
          <output>
            <line index="1">Response Code:0</line>
            <line index="2">Response Description:Operation succeeded</line>
            <items>
              <item>
                <record-type>TXT</record-type>
                <name>txt1.demo.com</name>
                <comment>from retrieving</comment>
                <disable>false</disable>
                <zone>demo.com</zone>
                <dns-view>Test DNS View</dns-view>
                <ttl />
                <txt-string>test record</txt-string>
                <extensible_attributes />
              </item>
              <item>
                <record-type>TXT</record-type>
                <name>qqqqq.forwardmappingzone</name>
                <comment />
                <disable>false</disable>
                <zone>forwardmappingzone</zone>
                <dns-view>Test DNS View</dns-view>
                <ttl />
                <txt-string>!@#$%^&amp;*()_+~ASM,.?/|}{[]</txt-string>
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>main</value>
                  </attribute>
                  <attribute>
                    <key>State</key>
                    <value>NY</value>
                  </attribute>
                </extensible-attributes>
              </item>
              <item>
                <record-type>TXT</record-type>
                <name>forwardmappingzone_testview</name>
                <comment>This is demo TXT record</comment>
                <disable>false</disable>
                <zone>forwardmappingzone_testview</zone>
                <dns-view>Test DNS View</dns-view>
                <ttl>1</ttl>
                <txt-string>10.0.0.2</txt-string>
                <extensible-attributes>
                  <attribute>
                    <key>Site</key>
                    <value>sample site</value>
                  </attribute>
                </extensible-attributes>
              </item>
            </items>
          </output>
        </command-output>
      </commands-output>
    </retrieve-dns-record-response>
  </responses>
</infoblox-vnios-response>

Was this page helpful? Yes No Submitting... Thank you

Comments