Skip to content

Commit

Permalink
release: consult resolved for host lookups
Browse files Browse the repository at this point in the history
This commit adds `resolve` to the nsswitch.conf.  It is placed second in
line for hosts resolution because Bottlerocket manages the hosts file in
the case there are custom settings.  `resolve` is annotated with
`[!UNAVAIL=return]` which means the library will move on to the the next
service in the list if it is unavailable, like when using wicked.  The
systemd-resolved package includes libnss_resolve.so, so resolved will be
consulted in that case.

Co-authored-by: Ben Cressey <[email protected]>
Co-authored-by: Zac Mrowicki <[email protected]>
  • Loading branch information
bcressey and zmrow committed Aug 30, 2023
1 parent dc942b2 commit dfbf90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/release/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
passwd: files
group: files
shadow: files
hosts: files dns
hosts: files resolve [!UNAVAIL=return] dns

0 comments on commit dfbf90b

Please sign in to comment.