Update host name of the XO VM
-
Hello, everyone.
I guess when I installed XO I had a different name set for the VM host and late on I changed it to something else.
I am trying to get the list of available objects by runningxo-cli list-objects
I get errors returned which point to the wrong host name and DNS errors:✖ Error: getaddrinfo ENOTFOUND xo1.my-domain.com at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { code: 'ENOTFOUND', errno: -3008, hostname: 'xo1.my-domain.com', syscall: 'getaddrinfo' }
My new host name is xo1-xyz.my-domain.com. What and where should I update to get the CLI working again?
Thank you very much
-
Just re-register it
-
@olivierlambert Please, how? Not getting my head around it. Thank you
-
@Ascar I suspect that Olivier means to register with the XO instance using this syntax --
xo-cli register [--allowUnauthorized] [--expiresIn <duration>] [--otp <otp>] <XO-Server URL> <username> [<password>]
You can run
xo-cli
without any parameters to get the full usage text. -
@Danp Thank you, trying now.