0

In case of gethostbyname(), it returns ip addr by doing name resolution using DNS and /etc/hosts or Netbios.

How will gethostbyaddr() work? how will this function get hostname from address ?

Chandu
  • 1,837
  • 7
  • 30
  • 51

1 Answers1

0

It depends on how host resolution is configured in the box. It could get from /etc/hostnames or so or from DNS or so...

Chandu
  • 1,837
  • 7
  • 30
  • 51