Filter: How To

hosts file

Easy Guide On Modifying Your Hosts File

From time to time you will find it necessary to modify your hosts file, this guide will give you step by step instructions on how to perform modifications which will enable you to override any DNS for a domain or bypass DNS propagation. This is useful when you want to test your website. Modifying your hosts file causes your local machine to look at the IP you specify.modifying host file

To modify your hosts file you would typically add 2 entries so the file that contains the IP address you want your site to resolve to. (In some cases antivirus/antimalware software may need to be temporarily disabled)

Example:

xxx.xxx.xxx.xxx www.domain.com
xxx.xxx.xxx.xxx domain.com

If you would like to disable a host entry simply delete the entry and save the file or just add a # before the entry then save the file.

Example:

#xxx.xxx.xxx.xxx www.domain.com
#xxx.xxx.xxx.xxx domain.com

Editing Your Hosts File On Windows 7 and Vista

  • Click Start > All Programs > Accessories.
  • Right-click on Notepad and select Run as administrator.
  • When Notepad opens, click on File > Open.
  • In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
  • Click on Open.
  • Make the necessary changes to your hosts file.
  • Click File > Save to save your changes.

 

Editing On Windows 10 and 8

  • Press the Windows key.
  • Search Notepad in your search field.
  • In the search results, right-click Notepad and select Run as administrator.
  • From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts.
  • Make the necessary changes to your hosts file.
  • Click File > Save to save your changes.

Editing On Linux Including Mac

  • Open a terminal window.
  • Open the hosts file in a text editor (any editor will work) by typing the following line:
  • sudo nano /etc/hosts
  • Enter your domain users password.
  • Make the necessary changes to the host file.
  • Press Control-x.
  • When asked if you want to save your changes, answer Y for yes.

If you have any questions fell free to email us at support@lunarpages.com

 

 

Using FileZilla Client To Transfer Files

To use FileZilla client as your FTP client you will need to download and install it on your computer.

Windows Users can download FileZilla client from here.

Once installed you can launch FileZilla using its icon:

filezilla

After launching FileZilla you well see the following window:

To connect you will need:

– the name of the server you wish to connect to (in most cases this will be ftp.mydomain.com.  (i.e. if your domain is unarpages.com you would use ftp.lunarpages.com).
– your master account username (this is your accounts user name and NOT your email address)
– your master account password

At the top of FileZilla’s window is the Quick Connect Bar.  This is the easiest way to enter the information and connect to the server.  Enter the following pieces of information:

Host: name of your server (Again, this is typically ftp.yourdomain.com)
Username: your master account username
Password: the password associated with the above username
Port: 22 (sometimes you will need sFTP which is Port:  21)

Once the information is entered click “Quickconnect”

FileZilla should come to life attempting to connect and then present you with a list of files in your home folder:

Your main web site will be under /home/<username>/public_html.  As you can see from the image above this user’s named ‘admin’, has their main web site is located under /home/admin/public_html.

If you have sub domains or add-on they will have their own folder under public_html.

For example if you have a sub domain called members.mydomain.com, the folder will typically be called members and be located at under the public_html directory.

Add on domains will have the full name of the domain (i.e. thisismyotherdomain.com) and also be located under the public_html folder.

To uplaod or download files you simple select the folder you wish to upload from in the top left area and then drag the files from the bottom left area to a folder on the left.

Take a moment and look at this image:


To upload or download files and folders you simply drag them from the left to the right or right to the left.

Happy FTPing!