def id_by_name(self, hostname):
addr = self._gethostbyname(hostname)<EOL>return self.id_by_addr(addr)<EOL>
Returns the database ID for specified hostname.
The id might be useful as array index. 0 is unknown.

:arg hostname: Hostname to get ID from.