Editing /etc/hosts

Customer Managed Applies to customer-managed instances of Alation

You may need to edit /etc/hosts in the Alation chroot to add DNS records on the Alation server.

Every time you enter the Alation shell, Alation copies the /etc/hosts file from the host system into the Alation chroot. Because of this, you shouldn’t edit /etc/hosts in the Alation chroot. If you do, your changes will be overridden next time you enter the Alation shell.


/etc/hosts isn’t managed by alation_conf.

To edit /etc/hosts, follow these steps:

  1. Use SSH to connect to the Alation server.

  2. Edit /etc/hosts on the host system. Save your changes.

  3. Enter the Alation shell using the following command:

    sudo /etc/init.d/alation shell

    This will automatically copy /etc/hosts to the Alation chroot.

  4. Exit the Alation shell.