/
NAPTR Record

NAPTR Record

Use the nios_naptr_record module to create, update, or remove an NAPTR record object from a NIOS Grid.

The following table describes the parameters you can define in the nios_naptr_record module:

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

Specifies the fully qualified host name of the record to add, update, or remove from NIOS.

view

Optional

Specifies the DNS view to associate the NAPTR record with.
If a value is not specified, the default DNS view configured in NIOS is used.

order

Required

Specifies the order value for this NAPTR record in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer.
This parameter specifies the order in which the NAPTR rules are applied when multiple rules are present.

preference

Required

Specifies the preference value for this NAPTR record in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer.
The preference field determines the order in which NAPTR records are processed when multiple records with the same order parameter are present.

replacement

Required

Specifies the replacement field for the NAPTR record.
For nonterminal NAPTR records, this field specifies the
next domain name to look up.

services

Optional

The services field (at most 128 characters in length) for the NAPTR record.
The field contains protocol and service identifiers, such as http+E2U and SIPS+D2T.

flags

Optional

Specifies the flags field for this NAPTR record.
The parameter controls the interpretation of the fields for an NAPTR record object. Supported values for the flags field are U, S, P, and A.

regexp

Optional

Specifies the regular expression-based rewriting rule of the NAPTR record.
This should be a POSIX compliant regular expression, which includes the substitution rule and flags. For details about the syntax of the field, refer to RFC 2915.

ttl

Optional

Specifies the Time To Live (TTL) value for the record. The duration that the record is valid for, in seconds (cached).

extattrs

Optional

Specifies extensible attributes for the NAPTR record object.

state

Optional

Specifies the state of the NAPTR record instance on the NIOS server.
Set one of the following values:

  • present (default): Configures the record.

  • absent: Removes the record.

comment

Optional

Describes the NAPTR record object.

provider

Required

Defines the details of the connection:

  • host: The DNS host name or IP address to connect to the remote instance of NIOS.

  • username: The user name to use for authenticating the connection to the remote instance.

  • password: The password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic.

connection

Required

The nios_naptr_record module must be run locally.

Examples

name: Configure an NAPTR record
infoblox.nios_modules.nios_naptr_record:
  name: '*.subscriber-100.ansiblezone.com'
  order: 1000
  preference: 10
  replacement: replacement1.network.ansiblezone.com
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local

 

name: Add a comment to an existing NAPTR record
infoblox.nios_modules.nios_naptr_record:
  name: '*.subscriber-100.ansiblezone.com'
  order: 1000
  preference: 10
  replacement: replacement1.network.ansiblezone.com
  comment: this is a test comment
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local