Sample Header Ad - 728x90

Why does Python 'gethostname()' return the entire FQDN when run on a FreeNAS server console?

2 votes
2 answers
5126 views
I get this (FreeNAS 11.2-RELEASE-U1): Python 3.6.5 (default, Dec 20 2018, 21:27:40) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> print (socket.gethostname()) backup-server.example.com >>> Wha...?
Asked by Stilez (1311 rep)
Feb 17, 2019, 10:08 PM
Last activity: Jan 15, 2022, 11:38 AM