Skip to content

DNS

DNS configuration manages domain name lookup and the default domain name for hostname resolution on NX-OS devices.

Diagram
NameTypeConstraintMandatoryDefault Value
dnsClass[dns]No

NameTypeConstraintMandatoryDefault Value
domain_lookupBooleantrue, falseNo
domain_nameStringNo

Example 1: DNS domain lookup with default domain

nxos:
devices:
- name: LEAF1
configuration:
dns:
domain_lookup: true
domain_name: example.com