From f793d299874a1b46f54c2b4e3dfe1f7cfa1c9544 Mon Sep 17 00:00:00 2001 From: Raoul Date: Thu, 2 Sep 2021 05:33:00 +0200 Subject: [PATCH] Change nsswicth config to better match docs and common use cases --- templates/nsswitch.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nsswitch.conf.j2 b/templates/nsswitch.conf.j2 index e0edcbc..64621b0 100644 --- a/templates/nsswitch.conf.j2 +++ b/templates/nsswitch.conf.j2 @@ -12,7 +12,7 @@ gshadow: files publickey: files -hosts: files mymachines myhostname {{ avahi_client__mdns_minimal_name }} [NOTFOUND=return] resolve [!UNAVAIL=return] dns {{ avahi_client__mdns_name }} +hosts: files {{ avahi_client__mdns_minimal_name }} [NOTFOUND=return] resolve [!UNAVAIL=return] dns {{ avahi_client__mdns_name }} myhostname networks: files protocols: db [NOTFOUND=return] files