If you are configuring a VRF for management purposes, there is currently no way to force system DNS traffic via a specific VRF.
This section describes configuring DNS on the system, namely:
- DNS name servers
- Domain search order
DNS name servers¶
In this example, some OpenNIC servers are used, two IPv4 addresses and two IPv6 addresses:
set system name-server 184.108.40.206 set system name-server 220.127.116.11 set system name-server 2a01:4f8:161:3441::1 set system name-server 2a00:f826:8:2::195
Domain search order¶
In order for the system to use and complete unqualified host names, a list can be defined which will be used for domain searches.
Domain names can include letters, numbers, hyphens and periods with a maximum length of 253 characters.
The system is configured to attempt domain completion in the following order: vyos.io (first), vyos.net (second) and vyos.network (last):
set system domain-search domain vyos.io set system domain-search domain vyos.net set system domain-search domain vyos.network