2

I'm following a guide on setting up SSO for SAP HANA. Part of the requirements are that I find the "fully qualified canonical domain name" of the HANA server I've created. I have access to the server via the command line. Is running the hostname command while logged in to the server (logged invia SSH) all I need to do to determine the FQCDN?

Adam
  • 143
  • 1
  • 5
  • Did it _not_ give you the FQDN?! – Michael Hampton Jan 30 '18 at 21:53
  • @MichaelHampton I want to confirm that the FQDN is what's returned by the `hostname` command, and also if the reference to 'canonical' makes any difference. – Adam Jan 30 '18 at 22:00
  • It is if the system was set up correctly. And 'canonical' is meaningless here. But there's no _automated_ way to tell if the hostname is correct. You will have to inspect it. [Here](https://serverfault.com/q/331936/126632) is a sample of the hell people have gone through _trying_ to automate this. But you can tell at a glance that, e.g. `sap.timhortons.ca` is a FQDN, because you aren't a computer. – Michael Hampton Jan 30 '18 at 22:01

1 Answers1

4

hostname -f (or --fqdn or --long) should return the fully qualified domain name.

sippybear
  • 2,997
  • 1
  • 12
  • 12