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 (192.168.0.103 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.
127.0.0.1 localhost # add entries for your local wikidot install # here's some examples: # main wikidot sites after initial install 192.168.0.103 www.mywikidot.com template-en.mywikidot.com profiles.mywikidot.com # new sites you create 192.168.0.103 test.mywikidot.com anything.mywikidot.com myblog.mywikidot.com # new tempaltes you create 192.168.0.103 template-blog.mywikidot.com # for https (this may not be necessary) 192.168.0.103 https://www.mywikidot.com # 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:
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 google.com.
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.