Preview its web site before updating its DNS configuration
en:Preview its web site before updating its DNS configuration
he:תצוגה מקדימה של אתר האינטרנט שלו לפני עדכון תצורת DNS שלה
ro:Previzualiza site-ul său înainte de actualizarea configurația DNS
ru:Просмотр своего веб-сайта перед обновлением своей конфигурации DNS
pl:Podgląd jego witrynę sieci web przed aktualizacją jego konfiguracja DNS
ja:DNS 構成を更新する前に、web サイトをプレビューします。
ar:معاينة موقعها على شبكة الإنترنت قبل تحديث تكوين DNS به
zh:在更新其 DNS 配置之前预览其 web 站点
de:Vorschau ihrer Website bevor Sie aktualisieren ihre DNS-Konfiguration
nl:Voorbeeld van de website bekijken voor het bijwerken van de DNS-configuratie
it:Anteprima il suo sito web prima di aggiornare la configurazione DNS
pt:Pré-visualize seu site antes de atualizar sua configuração de DNS
es:Previsualizar su sitio web antes de actualizar su configuración de DNS
fr:Prévisualiser son site web avant de mettre à jour sa configuration DNS
This article has been created by an automatic translation software. You can view the article source here.
Introduction
I want to see my new website without changing the dns of my domain without having to not function $sitepreview\r Plesk.
Solution
The hosts file is a file used by the operating System of a computer when accessing the Internet. It contains the local IP address, and possibly the address of Serverweb s. When accessing a network device by domain name, this file is consulted before access to the Server DNS and allows the System to know the associated IP address to the domain name. This technology was originally developed for Arpanet, the predecessor of the Internet, but became insufficient against the increase in the size of the network. It remains however used for small local networks, as well as in certain special cases, for example for Web filtering.
Location
The location of the hosts file depends on the operating System . List of default locations under System :
- Windows XP/Vista/2003/2008/7/8 : \Windows\system32\drivers \etc \hosts (%SystemRoot %\system32\drivers\etc\ )
- Windows NT 4/2000 : \Winnt \system32\drivers\etc\hosts (%SystemRoot%\system32\drivers\etc\ )
- Linux, Unix and Mac OS X : /etc/hosts
Modifying the hosts file
You can modify the hosts file by doing the following :
1. Locate the exact location of the hosts file (CF. )
2. Make a backup
3. Open it with a text editor such as Notepad or Nano
- Example on Linux Ubuntu : sudo nano /etc/hosts
- Example in Mac OS X : sudo pico /etc/hosts
- Attention Windows versions > à 2008/Vista, please open the Notepad in administrator mode : Button start, tap 'Notepad', right-click on the line that appears, run as administrator.
4. Make sure that the following lines are present (These lines are indispensable ) :
127.0.0.1 localhost
5. Add the line of your hosting with Ip of your hosting and your domain.
ex : 213.246. xx.xx monsite.com!
6. Save the file
7. Restart (for Windows versions prior to XP essentially).
Enable comment auto-refresher