Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

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

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

Parameter

Required/Optional

Description

nameRequiredSpecifies the fully qualified host name of the record to add, update, or remove from NIOS.
viewOptionalSpecifies the DNS view to associate the MX record with.
If a value is not specified, the default DNS view configured in NIOS is used.
mail_exchangerRequiredSpecifies the mail exchanger FQDN for this MX record.
preferenceRequired

Specifies the preference value in the range of 0 to 65535 that is formatted as a 32-bit unsigned integer.

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

Specifies extensible attributes for the MX record object.

stateOptional

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

  • present (default): Configures the record.
  • absent: Removes the record.
commentOptional

Describes the MX record object.

provider

Required

Defines the details of the connection:

  • host: DNS host name or IP address to connect to the remote instance of NIOS.
  • username: User name to use for authenticating the connection to the remote instance.
  • password: Password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters.

connectionRequiredThe nios_mx_record module must be run locally.

Examples

name: Configure an MX record
infoblox.nios_modules.nios_mx_record:
  name: ansible.com
  mx: mailhost.ansible.com
  preference: 0

  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local


name:Add a comment to an existing MX record
infoblox.nios_modules.nios_mx_record:
  name: ansible.com
  mx: mailhost.ansible.com
  preference: 0
  comment: this is a test comment
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local


  • No labels