SrvTarget.getHostname
string getHostname()Gets target's hostname (in ASCII form; if you are going to present this to the user, you should use [glib.global.hostnameIsAsciiEncoded] to check if it contains encoded Unicode segments, and use [glib.global.hostnameToUnicode] to convert it if it does.)
Returns
target's hostname