Skip to content

Commit

Permalink
Fixing instruction to change nsswitch in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxlli committed Sep 29, 2014
1 parent 0f12f3b commit 811d368
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -59,7 +60,7 @@ Dependencies: scons and clang
```bash
$ git clone [email protected]: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
Expand All @@ -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
Expand Down

0 comments on commit 811d368

Please sign in to comment.