base: set the lookup option so that resolv.conf searches /etc/hosts before querying a domain name server; the default is the opposite

This commit is contained in:
Jérémy Dubois 2023-03-15 15:55:41 +01:00
parent f42477c8fb
commit c7e3b2d9ac
3 changed files with 13 additions and 0 deletions

View file

@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* nagios-nrpe: add some information in check_connections_state.sh check
* ospf: precise in the readme file that no daemon is configured/activated
* logsentry: delete unused default file that we put in /usr/share/scripts
* base: set the lookup option so that resolv.conf searches /etc/hosts before querying a domain name server; the default is the opposite
### Changed

View file

@ -1,5 +1,6 @@
---
# tasks file for evobsd-base
- include: resolvconf.yml
- include: packages.yml
- include: doas.yml
- include: dotfiles.yml

View file

@ -0,0 +1,11 @@
---
- name: "Configure resolv.conf"
lineinfile:
path: /etc/resolv.conf
line: "lookup file bind"
insertbefore: BOF
owner: root
group: wheel
mode: "0644"
tags:
- resolvconf