Skip to content

Commit

Permalink
BIND use named.root from pkg. Fixes #10506
Browse files Browse the repository at this point in the history
  • Loading branch information
vktg committed Jul 5, 2020
1 parent a966efa commit e4491ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dns/pfSense-pkg-bind/Makefile
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pfSense-pkg-bind
PORTVERSION= 9.16
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= dns net
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
3 changes: 1 addition & 2 deletions dns/pfSense-pkg-bind/files/usr/local/pkg/bind.inc
Expand Up @@ -758,8 +758,7 @@ EOD;
file_put_contents(CHROOT_LOCALBASE . '/etc/namedb/rndc.conf', $rndc_file);

if (!file_exists(CHROOT_LOCALBASE . "/etc/namedb/named.root")) {
// dig +tcp @a.root-servers.net > CHROOT_LOCALBASE."/etc/namedb/named.root"
$named_root = file_get_contents("http://www.internic.net/domain/named.root");
$named_root = file_get_contents("/usr/local/etc/namedb/named.root");
file_put_contents(CHROOT_LOCALBASE . "/etc/namedb/named.root", $named_root, LOCK_EX);
}
if (!file_exists(CHROOT_LOCALBASE."/etc/localtime")) {
Expand Down

0 comments on commit e4491ae

Please sign in to comment.