Serge
Serge

Reputation: 2139

Does gethostbyaddr() function uses internet for converting IPAddress to Hostname?

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

Answers (1)

Alan Stokes
Alan Stokes

Reputation: 18974

Yes. It does a DNS lookup, which may be satisfied by the local resolver's cache or may not.

Upvotes: 2

Related Questions