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...?


cat /etc/hostname?