User`s guide

Return Format
The query command reads the Domain Name and returns an ASCII string
enclosed in double quotes. If a Domain Name has not been assigned, a null
string ( " " ) is returned.
Note that the query command has two optional parameters. Specify
"CURRent" (default) to read the dynamic Domain Name currently being used
by the instrument. Specify "STATic" to read the Domain Name currently
stored in non-volatile memory within the instrument (may not be the actual
name used by the instrument if DHCP is enabled).