Can a DNS lookup be made with AS3?
A:
Not directly - you will have to call a serverside script (php/jsp/asp/cgi/...) that does the lookup for you and returns the data, and most probably that script will have to do a command line call.
Simon Groenewolt
2009-08-10 15:50:58
Thanks for you answer. So AS3 has no DNS library built in? Has anyone tried developing one? AS3 has TCP and UDP support, so I don't see why there isn't any DNS query library. ie: I'm hoping I don't have to resort to a server-side script.
bucabay
2009-08-10 20:53:40
Networking is limited in flash, mostly for security (sandbox), but also because it is living 'inside' the browser (at least if you are using flash like it is mostly used). This means most of the time you cannot connect to a server that does not explicitely allow it, that probably rules out most of your options.
Simon Groenewolt
2009-08-11 10:51:33
right. somehow I forgot about that. However, if I set up a set of nameservers, and allow access to all, flash should be able to query it. Now I'm just wondering if anyone has done DNS in flash before? or if I have to write a webservice to do the job..
bucabay
2009-08-11 21:12:16
A:
As the flash application is living inside the browser, couldn't it just "ask the browser" and have the browser do the lookup?
Fracklen
2010-04-09 10:55:00