# Editing the hosts file

To enable Qlik Replicate to access the Teradata Database, you need to add the Teradata Database machine IP/name and database mappings to the Windows/Linux hosts file.

To add the Teradata Database mappings to the hosts file:

1. Open the Windows/Linux hosts file on the Qlik Replicate machine.

   On Windows, the default path for the hosts file is:

   `~:\Windows\System32\drivers\etc\hosts`

   On Linux, the default path for the hosts file is:

   `/etc/hosts`

2. Add the following line (note the “`cop1`” after the database name):

   `<Teradata Database IP address/hostname> <Teradata Database name>cop1`

   Example:

   `123.123.123.1 teradatadbonecop1`

   Information note

   Make sure that the database name added to the hosts files is the same as the database specified in the Default database field in the Teradata Database target database settings.

3. Save your changes.