config system dns-vdom
Use this command to configure the System DNS resolver for non-root VDOMs and override Global DNS settings to set a DNS server IP per VDOM for more flexibility.
This functionality is only available in the non-root VDOM. The root VDOM defaults to inherit the Global DNS settings.
Note: The DNS settings per VDOM is also not available when VDOMs are in Share Network mode (ADOM mode) as all ADOMs will share the same network namespace.
Before you begin:
- You must have VDOM enabled and have access to a non-root VDOM.
-
You must have a good understanding of DNS and knowledge of the remote DNS servers that can be used to communicate with Internet domain servers.
- You must have Read-Write permission for System settings.
Syntax
config system dns-vdom
set dns-override {enable|disable}
set primary <class_ip>
set secondary <class_ip>
end
dns-override |
Enable to apply the DNS settings configured for this non-root VDOM instead of inheriting from the Global DNS settings. |
primary |
Specify the IP address for the primary DNS server. |
secondary |
Specify the IP address for the secondary DNS server. |
Example
config system dns-vdom
set dns-override enable
set primary 1.1.1.1
set secondary 1.1.1.2
end