Wednesday, 15 September 2010

dns - Android alternative to iNetAddress or get it to use another resolver? -



dns - Android alternative to iNetAddress or get it to use another resolver? -

we have situation in our office first dns resolver found android doesn't work on wireless (intentional or not, not sure). i'm doing app whois lookups. need translate whois server ip using sec resolver (i can run properties, see 2 resolvers, figure out 1 works). unfortunately, far can tell, inetaddress works on first resolver. there known alternative, workaround, or can utilize ip address of domain through specified resolver? dnsjava uses inetaddress.

thanks in advance

dnsjava not utilize inetadress.getbyname() or inetaddress.getallbyname().

just utilize this:

system.setproperty("dns.server", "<resolver want use>"); inetaddress addr = address.getbyname("<name>");

android dns ip inetaddress

No comments:

Post a Comment