summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a80c6b7)
raw | patch | inline | side by side (parent: a80c6b7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Feb 2008 11:01:26 +0000 (11:01 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Feb 2008 11:01:26 +0000 (11:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9125 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index eef48fdfa9ebdd7c76aeb0a7c458f0cd8eb40fcc..9aaa5db31995657ab6f0fb7189b88af297bcc3a0 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
return;
}
-sub get_dns_domains() {
- my $line;
- my @searches;
- open(RESOLV, "</etc/resolv.conf");
- while(<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