mIRC Home    About    Download    Register    News    Help

Print Thread
#20309 21/04/03 01:31 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
When you DNS name an IP without a reverse DNS (i.e. it resolves to nothing), is it possible to get the IP you were originally trying to lookup?
E.g. /dns 80.192.110.57
Code:
on *:DNS:{
  What identifer would return 80.192.110.57 here?
}

I have tried $dns(1).ip and it doesn't work.

#20310 21/04/03 02:15 PM
Joined: Mar 2003
Posts: 23
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Mar 2003
Posts: 23
Code:
on *:INPUT:*: { if ($deltok($1,0,47) == dns) { echo -s $2- } }


The only way i found =P


blushcoolcrazy frownlaughmadshockedsmile:tongue:wink
#20311 21/04/03 02:32 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$iaddress

#20312 21/04/03 02:35 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I love you smile

#20313 21/04/03 04:28 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yea $iaddress works, but personally I find it odd that $dns(0).ip doesn't, if you do /dns someunknownsite.com then $dns(0).addr contains the address you tried to look up, so if you try and look up an IP, why doesn't $dns(0).ip work?

#20314 21/04/03 04:34 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Because it's broken, it is supposed to.

#20315 21/04/03 08:18 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well if it is truely a bug, why hasn't it been fixed seeing as how I first reported this in the first version $dns appeared.


Link Copied to Clipboard