zbyszek / rpms / nss-mdns

Forked from rpms/nss-mdns 3 years ago
Clone

85219c1 Move nss module earlier on hosts: line

Authored and Committed by zbyszek 3 years ago
1 file changed. 10 lines added. 6 lines removed.
    Move nss module earlier on hosts: line
    
    Before the initroduction of nss-resolve, putting mdns before dns was equivalent
    to putting it after files, since there wasn't anything inbetween. But when systemd
    is installed first we get:
      hosts: files resolve [!UNAVAIL=return] myhostname dns
    which the existing scriptlet here would modify to:
      hosts: files resolve [!UNAVAIL=return] myhostname mdns4_minimal [NOTFOUND=return] dns
    but we really want:
      hosts: files myhostname mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
    so mdns4 has higher priority than resolve.
    
    This applies to F33 and rawhide.
    
        
file modified
+10 -6