1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00

Make sure local DNS queries are resolved by dnsmasq

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-06-19 18:33:30 +02:00
parent 1e3cf6eaac
commit 2c73c4b9c6
4 changed files with 11 additions and 2 deletions

View file

@ -41,6 +41,14 @@ build() {
echo "etc/$fname m 644 0 0" >> "$DEPLOY/pseudo"
# local config files
fname=$(file_path_override "resolv.conf")
if [ ! -z "$fname" ]; then
cp "$fname" "./etc/resolv.conf"
echo "etc/resolv.conf m 644 0 0" >> "$DEPLOY/pseudo"
fi
# gather rootfs dependencies
dependencies | tsort | tac | \
grep -v "$PKGNAME" > "$PKGBUILDDIR/etc/packages"

View file

@ -6,7 +6,7 @@ dhcp-lease-max=150
dhcp-leasefile=/var/lib/dnsmasq.leases
user=dnsmasq
group=dnsmasq
except-interface=lo
no-dhcp-interface=lo
dhcp-authoritative
enable-ra

View file

@ -0,0 +1 @@
nameserver 127.0.0.1

View file

@ -6,7 +6,7 @@ dhcp-lease-max=150
dhcp-leasefile=/var/lib/dnsmasq.leases
user=dnsmasq
group=dnsmasq
except-interface=lo
no-dhcp-interface=lo
dhcp-authoritative
enable-ra