DNS
The nv unset commands remove the configuration you set with the equivalent nv set commands. This guide only describes an nv unset command if it differs from the nv set command.
nv set service dns <vrf-id> search <domain-id>
Configures the domains you want to search for name matches.
In Cumulus Linux 5.15 and later, this command is nv set system dns search <dns-search-id>.
Command Syntax
| Syntax | Description |
|---|---|
<vrf-id> |
The VRF you want to configure. |
<domain-id> |
The domain name or IPv4 address. |
Version History
Introduced in Cumulus Linux 5.2.0
Example
cumulus@switch:~$ nv set service dns default search nvidia.com
nv set service dns <vrf-id> server <dns-server-id>
Configures a remote DNS server.
In Cumulus Linux 5.15 and later, this command is nv set system dns server <dns-server-id>.
Command Syntax
| Syntax | Description |
|---|---|
<vrf-id> |
The VRF you want to configure. |
<dns-server-id> |
The IPv4 or IPv6 address of the remote DNS server. |
Version History
Introduced in Cumulus Linux 5.0.0
Example
cumulus@switch:~$ nv set service dns default server 192.0.2.44
nv set system dns domain <domain-name>
Configures the domain name on the Cumulus Linux switch, which is critical for accurate DNS resolution, network service integration, and compliance with networking standards. Cumulus Linux adds the domain name to the hostname and displays both the hostname and domain name in the shell prompt (after you log back in).
Command Syntax
| Syntax | Description |
|---|---|
<domain-name> |
The domain name you want to set on the switch. |
Version History
Introduced in Cumulus Linux 5.14.0
Example
cumulus@switch:~$ nv set system dns domain nvidia.com
nv set system dns server <dns-server-id>
Configures a remote DNS server.
In Cumulus Linux 5.14 and earlier, this command is nv set service dns <vrf-id> server <dns-server-id>.
Command Syntax
| Syntax | Description |
|---|---|
<dns-server-id> |
The IPv4 or IPv6 address of the remote DNS server. |
Version History
Introduced in Cumulus Linux 5.15.0
Example
cumulus@switch:~$ nv set system dns server 192.0.2.44
nv set system dns server <dns-server-id> priority
Configures a remote DNS server priority.
Command Syntax
| Syntax | Description |
|---|---|
<dns-server-id> |
The IPv4 or IPv6 address of the remote DNS server. |
Version History
Introduced in Cumulus Linux 5.15.0
Example
cumulus@switch:~$ nv set system dns server 192.0.2.44 priority 1
nv set system dns server <dns-server-id> vrf <vrf-id>
Configures a remote DNS server under a specific VRF.
In Cumulus Linux 5.14 and earlier, this command is nv set service dns <vrf-id> server <dns-server-id>.
Command Syntax
| Syntax | Description |
|---|---|
<dns-server-id> |
The IPv4 or IPv6 address of the remote DNS server. |
<vrf-id> |
The VRF name. |
Version History
Introduced in Cumulus Linux 5.15.0
Example
cumulus@switch:~$ nv set system dns server 192.0.2.44 vrf RED
nv set system dns search <dns-search-id>
Configures the domains you want to search for name matches.
In Cumulus Linux 5.14 and earlier, this command is nv set service dns <vrf-id> search <domain-id>.
Command Syntax
| Syntax | Description |
|---|---|
<domain-id> |
The domain name or IPv4 address. |
Version History
Introduced in Cumulus Linux 5.15.0
Example
cumulus@switch:~$ nv set system dns search nvidia.com