Configuring DNS settings by using the command line

You can configure the DNS settings by using the command interface.

About this task

To configure DNS settings from the command line, you enter DNS configuration mode and enter the required DNS commands.

Procedure

  1. Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
  2. Type config to enter global configuration mode.
  3. Type the following command to configure DNS settings:
    dns
    
  4. Use the following DNS commands to configure the settings:
    Command Description
    admin-state Sets the administrative state for the configuration.
    ip-preference Sets the preferred IP version when the DNS provider publishes both versions of addresses.
    load-balance Sets the load-balancing algorithm that the appliance uses to resolve host names.
    name-server Manages local DNS providers.
    retries Sets the number of times that the appliance attempts a failed query.
    search-domain Manages domain-suffixes in the search table for non-qualified domain names.
    static-host Manages host-address maps.
    timeout Sets the time to wait before the next query attempt.
  5. After you configure the DNS settings, enter exit
  6. Enter write memory to save the updated configuration.