-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing instruction to change nsswitch in README.
- Loading branch information
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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 | ||
|
@@ -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 | ||
|