Infoblox::DNS::Nameserver::Address - NS Name Server object.


NAME

Infoblox::DNS::Nameserver::Address - NS Name Server object.


DESCRIPTION

The NS Name Server object provides IP address information for the name server associated with an NS record.


CONSTRUCTOR

 my $rootns = Infoblox::DNS::Nameserver::Address->new(
              address => $address,                  #Required
              auto_create_ptr => "true" | "false"   #Optional / Default "true"
 );


MODULE METHODS

You can apply the following functions to an NS Name Server object:

Infoblox::DNS::Record::NS->nameservers( )

Use this function to specify the IP addresses associated with the NS record. See Infoblox::DNS::Record::NS->nameservers() for parameters and return values.

Example
 #Construct an NS Name Server object
 my $ns1 = Infoblox::DNS::Nameserver::Address->new(
              address  => "10.0.0.1"
 );
 # Configure a name server address on the NS record object
 $ns_record->nameservers([$ns1]);


METHODS

This section describes all the methods you can use to configure and retrieve the attribute values of an NS Name Server object.

address( )

Use this method to set or retrieve the IPv4 address of the name server.

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

Parameter

The IPv4 address (32 bits) of the name server.

Returns

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

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

Example
 #Get the address
 my $addr = $ns->address();
 #Modify the address
 $ns->address("10.0.0.1");

auto_create_ptr( )

Use this method to set or retrieve the auto_create_ptr flag of the name server. When this flag is set to true, PTR records are automatically created for NS records created in a reverse zone.

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

Parameter

Valid values are "true" or "false".

Returns

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

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

Example
 #Get auto_create_ptr
 my $aptr = $ns->auto_create_ptr();
 #Modify auto_create_ptr
 $rootns->auto_create_ptr("false");


AUTHOR

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


SEE ALSO

Infoblox::Session, Infoblox::DNS::Record::NS


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.