The example you have given will print the name of DC to which you are currently connected but not the FQDN of local computer.