Reputation: 2139
Does gethostbyaddr() function uses internet connection for converting ip address to hostname? Or it uses some cached data (like DNS cache)?
Upvotes: 0
Views: 196
Reputation: 18974
Yes. It does a DNS lookup, which may be satisfied by the local resolver's cache or may not.
Upvotes: 2