ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
3.2.49 gethostentgethostent
sethostent These functions do the same thing as their like-named system library routines - see gethostent(3). They iterate through your /etc/hosts file and return each entry one at a time. The return value from gethostent is: ($name, $aliases, $addrtype, $length, @addrs) where
($a, $b, $c, $d) = unpack('C4', $addrs[0]); Scripts that use these routines should not be considered portable. If a machine uses a nameserver, it would interrogate most of the Internet to try to satisfy a request for all the addresses of every machine on the planet. So these routines are unimplemented on such machines. |