From 811d368b426b7f9e1f774c6bd8f901651a191186 Mon Sep 17 00:00:00 2001 From: Everton Ribeiro Date: Mon, 29 Sep 2014 11:44:02 -0300 Subject: [PATCH] Fixing instruction to change nsswitch in README. --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e32b465..49ff330 100644 --- a/README.md +++ b/README.md @@ -40,16 +40,17 @@ $ azk shell [so] --mount /usr/lib:/azk/lib -c "scons install" Now you can add the resolver-nss in a resolution pipe: ```bash -$ sudo sed -i -re 's/^(hosts: .*$)/\1 resolver/' /etc/nsswitch.conf +$ sudo sed -i -re 's/^(hosts: .*files)(.*)$/\1 resolver\2/' /etc/nsswitch.conf ``` or edit `/etc/nsswitch.conf`: ```bash -# normally ↓ -hosts: files dns resolver -# but, if you have avahi (Zeroconf) installed ↓ -hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 resolver +# normally ↓ +hosts: files resolver dns +# but, if you have avahi (Zeroconf) installed +# ↓ +hosts: files resolver mdns4_minimal [NOTFOUND=return] dns mdns4 resolver ``` ### From the source (without azk) @@ -59,7 +60,7 @@ Dependencies: scons and clang ```bash $ git clone git@github.com:azukiapp/libnss-resolver.git # or -$ git clone https://github.com/azukiapp-samples/libnss-resolver +$ git clone https://github.com/azukiapp/libnss-resolver.git $ cd libnss-resolver # build @@ -75,10 +76,11 @@ $ sudo sed -i -re 's/^(hosts: .*$)/\1 resolver/' /etc/nsswitch.conf or edit `/etc/nsswitch.conf`: ```bash -# normally ↓ -hosts: files dns resolver -# but, if you have avahi (Zeroconf) installed ↓ -hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 resolver +# normally ↓ +hosts: files resolver dns +# but, if you have avahi (Zeroconf) installed +# ↓ +hosts: files resolver mdns4_minimal [NOTFOUND=return] dns mdns4 resolver ``` ## Configuring