Configuring DNS resolver

Last Updated : Jul 06, 2020 |

Procedure

  1. Enter ip domain name-server-list 1 to create the DNS servers list.
    Gxxx-001(config)# ip domain name-server-list 1
    Gxxx-001(config-name-server-list:1)#
  2. Use the description command to specify a description for the list.
    Gxxx-001(config-name-server-list:1)# description All DNS servers
    Done!
    Gxxx-001(config-name-server-list:1)#
  3. Add a DNS server to the DNS servers list using the name-server command.
    • Assign an index number that ranks the DNS server by priority.

    • Specify the IP address of the DNS server.

  4. Repeat Step 3 to configure additional DNS servers in the list.

    You can configure up to six DNS servers.

    Gxxx-001(config-name-server-list:1)# name-server 1 1.1.1.1
    Done!
    Gxxx-001(config-name-server-list:1)# name-server 2 2001:DB8::21F:3CFF:FE14:6E25
    Done!
  5. Use the ip domain list command to configure a domain name.

    This domain name will be used as a suffix to complete non-FQDN names (hostnames that do not end with a dot).

    • Assign an index number that ranks the domain name by priority.

    • Specify the domain name.

  6. Repeat Step 5 to configure additional domain names.

    You can configure up to six domain names.

    Gxxx-001(config)# ip domain list 1 avaya.com
    Done!
    Gxxx-001(config)# ip domain list 2 emea.avaya.com
    Done!
  7. Optionally, configure the number of DNS query retries, using the ip domain retry command.

    The default value is 2.

    Gxxx-001(config)# ip domain retry 4
    Done!
  8. Optionally, configure the timeout for a DNS query using the ip domain timeout command.

    The default value is 3 seconds.

    Gxxx-001(config)# ip domain timeout 4
    Done!
  9. The DNS resolver is enabled by default.
    Gxxx-001(config)# ip domain lookup
    Done!
  10. If either DHCP Client or PPP are configured in the Branch Gateway, you do not need to configure DNS resolver because the DNS resolver is enabled by default. In addition, the DHCP Client and PPP discover DNS servers automatically, so the list of DNS servers include the automatically-learned DNS servers.
    • For DHCP Client, enable DHCP Client by entering ip address dhcp. For information about DHCP Client see Configuring the DHCP client.

    • For PPP, enable automatic discovery of DNS servers by entering ppp ipcp dns request.

Example