HOSTS File - Firebird

If your TCP/IP network is not running a domain name service, it will be necessary to inform each node individually of the mappings of IP addresses to host names in your network. To enable this, update the HOSTS file of each node (server and client).

When you are setting up Firebird nodes for TCP/IP networking, it is recommended that you configure the host name files on clients and use these, rather than the IP addresses directly, for attaching to the server. Although most up -to -date operating systems can use the host’s IP address in your client connection string in lieu of the host name, connection through a host name ensures that the server’s address remains
static, regardless of dynamic address changes in the network.

Locating the HOSTS File

Here is where to find the HOSTS file:

  • On Linux and many UNIX versions, the HOSTS file is normally located in /etc/. Note that file names are case-sensitive on the UNIX family of platforms.
  • On Windows NT/2000, the HOSTS file is located in C:\WINNT\system32\drivers\etc\.
  • On Windows 95/98/ME/XP/Server2003, the HOSTS file is located in C:\Windows.

Examples of hosts file entries are as follows:

10.12.13.2 db_server # Firebird server (in your LAN) 65.215.221.149 apress.com # (server on a WAN) 127.0.0.1 localhost # local loopback server (on Windows) 127.0.0.1 localhost.localdomain # local loopback server (on Linux)

Open and edit the HOSTS file with a plain text editor. Writing the entry is simple. However, ensure that

  • The IP address, if not 127.0.01 (localhost), must be the valid one configured for the host in your network.
  • Server_name can be any unique name in your network.
  • The comments following the hash symbol (#) are optional, but recommended.
  • The format is identical, regardless of whether the host is running on Windows or Linux/UNIX.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Firebird Topics