Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Setup FQDN for Ambari install

avatar
Rising Star

Hi all,

I've 4 VMs on a vps with internet access through a rebond but not visible from the internet. My problem is that i couldn't set the FQDN for each VM. I added this line to /etc/hosts for every VM: "10.10.10.x VMx.local VMx" where x is the number of the VM

Any one have an idea about how to set the FQDN ? and if not is it possible to use IP instead of FQDN ?

i've this config:

Public repond: IP : 151.xx.xx.xx

from the rebond with ssh:

VM | eth0 | | eth1 | VM1 : 192.168.1.10 10.10.10.1 VM2 : 192.168.1.11 10.10.10.2 VM3 : 192.168.1.12 10.10.10.3 VM4 : 192.168.1.13 10.10.10.4

Thanks.

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Zaher Mahdhi

Your best shot is to manage the setup through /etc/hosts

Have entries in /etc/hosts in each clutser node and also, have the same setup in /etc/hosts of your local machine.

View solution in original post

10 REPLIES 10

avatar

to set the FQDN host name

use the command to set the hostname for temporary hostname test.test.com,

To set hostname permanently add entry in /etc/sysconfig/network for 6

HOSTNAME=test.test.com .

To resolve the all the vm hostname add the hostnamein /etc/hosts file

i.e

10.x.x.x test.test1.com

10.x.x.x new.test1.com

To set hostname permanently in cent os 7

use command

nmtui