Displaying 2 results from an estimated 2 matches for "resolv_conf_fh".
2016 Sep 29
2
BIND9.8 DLZ performance issue
Hello,
I'm running Samba 4.5.0 and bind-9.8.2-0.47.rc1.el6_8.1. One DC of
four, the PDC, is magnitudes slower running
/usr/local/samba/sbin/samba_dnsupdate --verbose --all-names. When that
is running on that DC it seems to block any queries. The load average
is usually under 0.5. The DC was unsafely halted, which could have
corrupted something. I ran a dbcheck with samba-tool and it
2016 Oct 07
0
BIND9.8 DLZ performance issue
...#39;m hoping the issue is just load balancing, but I'm not sure. I can't
see to get the traffic balanced across two DCs.
I ran this script on all Linux nodes to balance the traffic.
#!/usr/bin/perl
use strict;
use warnings;
my $primary_name_server;
my $random = int(rand(10));
open(my $resolv_conf_fh, '< /etc/resolv.conf') or die("Unable to open /etc/resolv.conf for reading: $!");
while(<$resolv_conf_fh>) {
chomp;
if ($_ =~ /nameserver (.*)/) {
$primary_name_server = $1;
last;
}
}
close($resolv_conf_fh);
if (! defined($primary_name_se...