How To Edit Linux Host File ??


Changing Hosts File On Linux Systems ::

If you have Linux PCs on your home network and want to access your Wikidot install, you need to edit your hosts file to include the specific site(s) you want to access. You’ll need to know the internal IP address of your Wikidot server ( is used in the example below). On Linux PCs, the hosts file is located in the /etc/ folder. The file name is simply hosts (no file extension). You can edit the file using gedit, nano or any other text editor. localhost

# add entries for your local wikidot install
# here's some examples:
# main wikidot sites after initial install
# new sites you create
# new tempaltes you create
# for https (this may not be necessary)

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


  • Edit the hosts file on your system. The hosts file is usually found in

  • Add this entry to the Hosts file:
  • Now make sure this file is used for host name lookups. This is done in two files. First is:

    This file should have at least the line shown below:

    order hosts,bind

    That has host lookups use the hosts file before doing a DNS query with bind.

  • The next file is:

    Recent tests indicate that this file is required in order for the pserver to use the entry in /etc/hosts. The nsswitch.conf file should have this line for the hosts configuration:

    hosts:      files nisplus nis dns

    There will probably already be a similar line in your version of this file. Just make sure “files” comes before whatever other methods are listed.

  • There is no need to reboot your system. Just restart your palace pservers.
  • Start up your palace.
  • It should now “register” with the Live Directory at

    NOTE: The above configuration instructions were tested with a linux 4.5.1 Palace server, and should also work with the linux 4.4.1 server. The 4.3.2 linux server did not respond to the above configuration when tested. Older versions were not tested Though It will Work With All.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

The Blog

The latest news on and the WordPress community.