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:
parent
1e3cf6eaac
commit
2c73c4b9c6
4 changed files with 11 additions and 2 deletions
|
@ -41,6 +41,14 @@ build() {
|
||||||
|
|
||||||
echo "etc/$fname m 644 0 0" >> "$DEPLOY/pseudo"
|
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
|
# gather rootfs dependencies
|
||||||
dependencies | tsort | tac | \
|
dependencies | tsort | tac | \
|
||||||
grep -v "$PKGNAME" > "$PKGBUILDDIR/etc/packages"
|
grep -v "$PKGNAME" > "$PKGBUILDDIR/etc/packages"
|
||||||
|
|
|
@ -6,7 +6,7 @@ dhcp-lease-max=150
|
||||||
dhcp-leasefile=/var/lib/dnsmasq.leases
|
dhcp-leasefile=/var/lib/dnsmasq.leases
|
||||||
user=dnsmasq
|
user=dnsmasq
|
||||||
group=dnsmasq
|
group=dnsmasq
|
||||||
except-interface=lo
|
no-dhcp-interface=lo
|
||||||
dhcp-authoritative
|
dhcp-authoritative
|
||||||
enable-ra
|
enable-ra
|
||||||
|
|
||||||
|
|
1
product/router/resolv.conf
Normal file
1
product/router/resolv.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
nameserver 127.0.0.1
|
|
@ -6,7 +6,7 @@ dhcp-lease-max=150
|
||||||
dhcp-leasefile=/var/lib/dnsmasq.leases
|
dhcp-leasefile=/var/lib/dnsmasq.leases
|
||||||
user=dnsmasq
|
user=dnsmasq
|
||||||
group=dnsmasq
|
group=dnsmasq
|
||||||
except-interface=lo
|
no-dhcp-interface=lo
|
||||||
dhcp-authoritative
|
dhcp-authoritative
|
||||||
enable-ra
|
enable-ra
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue