mIRC Home    About    Download    Register    News    Help

Print Thread
#135613 14/11/05 04:51 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
me uses mirc6.03

there it says that /dns -h treats everything as hostname
therefore it should always try to resolve and show IP

it doesnt...

my script:

Code:
 
on *:DNS:{
  if ($dns(0).ip) {
    set %whois.ip $dns(0).ip
  }
  elseif ($dns(1).ip) {
    .echo -s Unable to retreive IP, trying to resolve hostname...
    .dns %whois.ip
  }
  elseif ($dns(0).ip == 0) {
    .echo -s Unable to resolve anything
  }
}

 


in this logic if IP isnt get on first dns, it tries again, so this time
it resolves host to get ip...

but this dont work smirk
i again get host as output

anyone care to explain why?


IceCapped
#135614 17/11/05 03:09 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
so hard eh? :tongue:


IceCapped

Link Copied to Clipboard