From: cajus Date: Tue, 26 Feb 2008 11:01:26 +0000 (+0000) Subject: Removed duplicated dns domains X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12b8221fa3b18c5379df5188d1e094fb19121911;p=gosa.git Removed duplicated dns domains git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9125 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index eef48fdfa..9aaa5db31 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -1149,29 +1149,6 @@ sub server_input { return; } -sub get_dns_domains() { - my $line; - my @searches; - open(RESOLV, "){ - $line= $_; - chomp $line; - $line =~ s/^\s+//; - $line =~ s/\s+$//; - $line =~ s/\s+/ /; - if ($line =~ /^domain (.*)$/ ){ - push(@searches, $1); - } elsif ($line =~ /^search (.*)$/ ){ - push(@searches, split(/ /, $1)); - } - } - close(RESOLV); - - my %tmp = map { $_ => 1 } @searches; - @searches = sort keys %tmp; - - return @searches; -} #==== MAIN = main ============================================================== # parse commandline options