| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Nov 27, 2002 9:34 am Post subject: DNSquery or DIG |
|
|
Hi,
does somebody know a way to do something like dnsquery or dig
(asking a specific nameserver for data on a domainentry) in vds ?
Maybe with vdsipp.dll ?
Bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Nov 27, 2002 11:01 am Post subject: DNSquery or DIG |
|
|
Hi,
thanks for your answer.
Do you know port and commands ?
Bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Nov 27, 2002 4:08 pm Post subject: |
|
|
I've found something. Use this:
| Code: | %%address = "www.yahoo.com"
run nslookup %%address |
I don't know how to get the information, because @retcode() gives a NULL. Maybe you can get it by using command.com or something to log what nslookup returns... _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Nov 27, 2002 4:34 pm Post subject: |
|
|
| There is a built in WHOIS query within the vdsipp, otherwise if you need other information you'll need to use tcp. Looking on the internet for RFC documents you should be able to find the port numbers needed for the information you are requesting. |
|
| Back to top |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Wed Nov 27, 2002 4:50 pm Post subject: |
|
|
Just force it into a file, then load the file into a file list and read the info out. Maybe like this:
| Code: |
%%ADDRESS = yahoo.com
LIST CREATE,1
LIST ADD,1, nslookup %%ADDRESS > @NAME(%%ADDRESS).txt
LIST SAVEFILE,1,nslookup.bat
LIST CLOSE,1
RUN nslookup.bat,wait
LIST CREATE,1
LIST LOADFILE,1,@NAME(%%ADDRESS).txt
LIST SEEK,1,4
%%IP = @ITEM(1)
LIST CLOSE,1
WARN %%IP
|
| skit3000 wrote: | I've found something. Use this:
| Code: | %%address = "www.yahoo.com"
run nslookup %%address |
I don't know how to get the information, because @retcode() gives a NULL. Maybe you can get it by using command.com or something to log what nslookup returns... |
|
|
| Back to top |
|
 |
|