Hello!
We have multiple search domains in /etc/resolv.conf on the host, but only the first entry gets added to new OpenVZ containers.
I found the problem in /usr/share/perl5/PVE/INotify.pm, and have edited it to support more than one search domain:
Should I log this as a bug as well?
/Jonas
We have multiple search domains in /etc/resolv.conf on the host, but only the first entry gets added to new OpenVZ containers.
I found the problem in /usr/share/perl5/PVE/INotify.pm, and have edited it to support more than one search domain:
Code:
*** INotify.pm 2011-12-14 15:06:16.597564469 +0100
--- INotify.pm.patched 2011-12-14 15:06:48.745792975 +0100
***************
*** 537,541 ****
while (my $line = <$fh>) {
chomp $line;
! if ($line =~ m/^(search|domain)\s+(\S+)\s*/) {
$res->{search} = $2;
} elsif ($line =~ m/^nameserver\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*/) {
--- 537,541 ----
while (my $line = <$fh>) {
chomp $line;
! if ($line =~ m/^(search|domain)\s+(.+)/) {
$res->{search} = $2;
} elsif ($line =~ m/^nameserver\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s*/) {
Should I log this as a bug as well?
/Jonas