Is it neccessary to connect dgmgrl through tns for switchover?

DGMGRL>connect sys/xxxx@tns

or

DGMGRL>connect sys/xxx