if ($nslookup[-1] =~ m/wurde von .* nicht gefunden: Non-existent domain/) { # not found, write to different file {