*
The moose likes Java in General and the fly likes getAllByName not  working with ip addresses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "getAllByName not  working with ip addresses " Watch "getAllByName not  working with ip addresses " New topic
Author

getAllByName not working with ip addresses

abhay jain
Ranch Hand

Joined: Jun 03, 2011
Posts: 130
i was trying to use getAllByName with an ip address but it is nor providing an arry if ip addresses
but it is working with names like "yahoo.com" easily and gives an arry of ip addresses as ouput

why ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
The javadocs of that method state that that's its behavior, so you shouldn't be surprised by it.


Ping & DNS - my free Android networking tools app
abhay jain
Ranch Hand

Joined: Jun 03, 2011
Posts: 130
Ulf Dittmer wrote:The javadocs of that method state that that's its behavior, so you shouldn't be surprised by it.


thanks.... please tell me how can i check this in javadocs
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
The javadocs are here: http://download.oracle.com/javase/6/docs/api/
abhay jain
Ranch Hand

Joined: Jun 03, 2011
Posts: 130
Ulf Dittmer wrote:The javadocs are here: http://download.oracle.com/javase/6/docs/api/


oh , i understood, actually i was confused because of my text book .. thanks again

[Resolved]



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getAllByName not working with ip addresses