isc-dhcp: write resolv.conf per network & dhcp settings
The internal nameservers and the DHCP default domain should be
squirted into /tmp/resolv.conf.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
(cherry picked from commit db6adb616d
)
This commit is contained in:
parent
e9854d09f3
commit
bae476afe5
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=isc-dhcp
|
PKG_NAME:=isc-dhcp
|
||||||
UPSTREAM_NAME:=dhcp
|
UPSTREAM_NAME:=dhcp
|
||||||
PKG_VERSION:=4.4.1
|
PKG_VERSION:=4.4.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
|
@ -263,6 +263,11 @@ general_config() {
|
||||||
echo "max-lease-time $max_lease_time;"
|
echo "max-lease-time $max_lease_time;"
|
||||||
|
|
||||||
[ -n "$domain" ] && echo "option domain-name \"$domain\";"
|
[ -n "$domain" ] && echo "option domain-name \"$domain\";"
|
||||||
|
|
||||||
|
rm -f /tmp/resolv.conf
|
||||||
|
echo "# This file is generated by the DHCPD service" > /tmp/resolv.conf
|
||||||
|
[ -n "$domain" ] && echo "domain $domain" >> /tmp/resolv.conf
|
||||||
|
echo "nameserver 127.0.0.1" >> /tmp/resolv.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
|
Loading…
Reference in a new issue