Page MenuHomePhabricator

System DNS Server Order Incorrect
Open, Requires assessmentPublicBUG

Description

The order of nameservers in /etc/resolv.conf in VyOS does not currently reflect the order in which those nameservers are added and committed, which is necessary for situations where domains are only resolvable by specific nameservers. The /etc/resolv.conf file is parsed in order, so if the first nameserver that is queried in the list returns NXDOMAIN, the domain will not resolve, even if later nameservers do in fact have a record for it.

(ignore the 209 DNS servers, those are in bug report T1714)

vyos@cr01-vyos# set system name-server 192.168.1.1                                              
[edit]                                                                                          
vyos@cr01-vyos# set system name-server 8.8.8.8                                                  
[edit]                                                                                          
vyos@cr01-vyos# set system name-server 1.1.1.1                                                  
[edit]                                                                                          
vyos@cr01-vyos# commit                                                                          
[edit]                                                                                          
vyos@cr01-vyos# cat /etc/resolv                                                                 
resolvconf/  resolv.conf                                                                        
[edit]                                                                                          
vyos@cr01-vyos# cat /etc/resolv.conf                                                            
                                                                                                
### Autogenerated by VyOS ###                                                                   
### Do not edit, your changes will get overwritten ###                                          
                                                                                                
nameserver 1.1.1.1                                                                              
nameserver 192.168.1.1                                                                          
nameserver 8.8.8.8                                                                              
nameserver 209.18.47.61                                                                         
nameserver 209.18.47.62                                                                         
                                                                                                
domain <removed>                                                                        
search <removed>

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.2-rolling-201910050117
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

trae32566 created this task.Oct 6 2019, 6:33 PM
pasik added a subscriber: pasik.Oct 6 2019, 9:11 PM