File: //usr/lib/python3.9/site-packages/ipapython/__pycache__/fqdn.cpython-39.pyc
a
}�f� � @ s d Z ddlZdd� ZdS )zGet host's FQDN
� Nc C s4 t �� } t j| dt jt jt jt jB d�}|d d S )z�Get the fully qualified domain name of current host from glibc
This function may return an FQDN with up to MAXHOSTFQDNLEN characters
(253). The effective hostname is still limited to MAXHOSTNAMELEN (64).
:return: FQDN as str
N)Zfamily�type�flagsr � )�socketZgethostnameZgetaddrinfoZ AF_UNSPECZ
SOCK_DGRAMZAI_CANONNAMEZ
AI_ADDRCONFIG)�hostnameZgai� r �2/usr/lib/python3.9/site-packages/ipapython/fqdn.py�gethostfqdn s
�r )�__doc__r r r r r r �<module> s