Infoblox::Grid::Member::QueryFQDNParameter - A FQDN query parameters.


NAME

Infoblox::Grid::Member::QueryFQDNParameter - A FQDN query parameters.


DESCRIPTION

A FQDN query call parameter objects. This object is intended to use only as Infoblox::Session->query_fqdn_on_member() parameter.


CONSTRUCTOR

 my $params = Infoblox::Grid::Member::QueryFQDNParameter->new(
     fqdn            => $string,                                          # Required
     member          => $string,                                          # Optional / Default is GM
     name_server     => $ipv4addr,                                        # Optional / Default is local nameserver
     record_type     => 'ANY' | 'A' | 'AAAA' | 'CNAME' | 'DNAME' | 'MX' |
                        'NAPTR' | 'NS' | 'PTR' | 'SRV' | 'TXT' | 'AXFR'   # Optional / Default is 'ANY'
     recursive_query => 'true' | 'false',                                 # Optional / Default is 'true'
 );


MODULE METHODS

Infoblox::Session->query_fqdn_on_member( )

Use this method to query FQDN on the specified member.

This method forces Grid Master to execute RPC call to invoke dog on the member for a specific FQDN.

See Infoblox::Session->query_fqdn_on_member() for parameters and return values.

Example
 #Construct parameters object
 my $query_fqdn = Infoblox::Grid::Member::QueryFQDNParameter->new(
     fqdn        => 'bar.com',
     member      => 'member1',
     name_server => '5.5.5.5',
     record_type => 'A',
 );
 #Query
 my $response = $session->query_fqdn_on_member($query_fqdn);


METHODS

This section describes all the methods that you can use to set or retrieve the attribute values of the object.

fqdn( )

Use this method to set or retrieve a fully-qualified DNS query name.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is a FQDN to query in string format.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get fqdn value
 my $fqdn = $object->fqdn();
 #Modify fqdn value
 $object->fqdn($fqdn);

member( )

Use this method to set or retrieve a member name to invoke dig on.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is a string that contains the Grid Member host name. Default is undefined, which causes dig invokation on Grid Master.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get member value
 my $member = $object->member();
 #Modify member value
 $object->member('localhost.localdomain');

name_server( )

Use this method to set or retrieve a nameserver to query.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid value is a string that contains an IPv4 address.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get name_server value
 my $value = $object->name_server();
 #Modify name_server value
 $object->name_server('5.5.5.5');

record_type( )

Use this method to set or retrieve the resource record type to query.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

The valid values are 'ANY', 'A', 'AAAA', 'CNAME', 'DNAME', 'MX', 'NAPTR', 'NS', 'PTR', 'SRV', 'TXT' and 'AXFR'. The default value is 'ANY'.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get record_type value
 my $value = $object->record_type();
 #Modify record_type value
 $object->record_type('AAAA');

recursive_query( )

Use this method to set or retrieve the recursive query flag.

Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.

Parameter

Specify 'true' to set recursive query flag and 'false' to unset/deactivate it. The default value is 'true'.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 #Get recursive_query value
 my $value = $object->recursive_query();
 #Modify recursive_query value
 $object->recursive_query('false');


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Session->query_fqdn_on_member()


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.