mIRC Homepage
Posted By: Collective on DNS - 21/04/03 01:31 PM
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.
Posted By: nitestarzz Re: on DNS - 21/04/03 02:15 PM
Code:
on *:INPUT:*: { if ($deltok($1,0,47) == dns) { echo -s $2- } }


The only way i found =P
Posted By: Nimue Re: on DNS - 21/04/03 02:32 PM
$iaddress
Posted By: Collective Re: on DNS - 21/04/03 02:35 PM
I love you smile
Posted By: codemastr Re: on DNS - 21/04/03 04:28 PM
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?
Posted By: Nimue Re: on DNS - 21/04/03 04:34 PM
Because it's broken, it is supposed to.
Posted By: codemastr Re: on DNS - 21/04/03 08:18 PM
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.
© mIRC Discussion Forums