Skip to content

Commit

Permalink
Merge pull request #6268 from pprindeville/dhcp-update-resolv.conf
Browse files Browse the repository at this point in the history
isc-dhcp: write resolv.conf per network & dhcp settings
  • Loading branch information
pprindeville committed Jun 12, 2018
2 parents c44ccef + db6adb6 commit 7716f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/isc-dhcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=isc-dhcp
UPSTREAM_NAME:=dhcp
PKG_VERSION:=4.4.1
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
Expand Down
5 changes: 5 additions & 0 deletions net/isc-dhcp/files/dhcpd.init
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ general_config() {
echo "max-lease-time $max_lease_time;"

[ -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() {
Expand Down

0 comments on commit 7716f41

Please sign in to comment.