Infoblox::DNS::Ruleset::NxdomainRule - Rule of Ruleset object
Represents a rule that is used to match domain names.
my $rule = Infoblox::DNS::Ruleset::NxdomainRule->new( pattern => $string, #Required action => $string, #Required );
The following functions can be applied to an Infoblox::DNS::Ruleset::NxdomainRule object.
Use this method to add a list of Infoblox::DNS::Ruleset::NxdomainRule objects to the Ruleset object of an Infoblox appliance. See Infoblox::DNS::Ruleset->nxdomain_rules()
for parameters and return values.
#Construct a rule my $rule1 = Infoblox::DNS::Ruleset::NxdomainRule->new( pattern => "www.a.zone.com", action => "PASS" );
# Configure a rule for the Ruleset object $ruleset->nxdomain_rules([$rule1]);
This section describes all the methods you can use to configure and retrieve the attribute values of a Rule object.
Use this method to specify the pattern that is used to match domain names.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The pattern in string format, with a maximum of 1024 characters.
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.
#Get pattern my $pattern = $ruleset_item->pattern(); #Modify pattern $ruleset_item->pattern("^*$");
Use this method to specify the action to perform when a domain name matches the pattern defined in this Infoblox::DNS::Ruleset::NxdomainRule object.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is "PASS", "REDIRECT" or "MODIFY".
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.
#Get action my $action = $ruleset_item->action(); #Modify action $ruleset_item->action("PASS");
Infoblox Inc. http://www.infoblox.com/
Infoblox::Session, Infoblox::DNS::Ruleset
Copyright (c) 2017 Infoblox Inc.