# hosts fisier - Adăugare înregistrări DNS in hosts

---

#### **1. Detectam IP adresa serverului pe care e hostat site-ul in Plesk**

In partea de jos in panelul de control al site-ului din Plesk putem vedea IP adresa

spre exemplu, in cazul acesta este 217.26.150.24

<p class="callout danger">La dvs poate fi **alta adresa IP** , e important sa verificati care este la dvs pentru ca setarea corecta depinde de aceasta</p>

[![image.png](https://kb.host.md/uploads/images/gallery/2026-10/scaled-1680-/CSy1QIFm4x88hlu4-image.png)](https://kb.host.md/uploads/images/gallery/2026-10/CSy1QIFm4x88hlu4-image.png)

---

---

---

#### **2. Editare fișier `<strong class="editor-theme-bold editor-theme-code">hosts</strong>` (Windows)**

#####  Pasul 2.1: Deschide Meniul Start

 Apasă pe butonul **Start** (logo-ul Windows) din bara de task-uri `<span class="editor-theme-code">(1)</span>`.

#####  Pasul 2.2: Caută Terminal / CMD

 Tastează `<span class="editor-theme-code">terminal</span>` sau `<span class="editor-theme-code">cmd</span>` în bara de căutare `<span class="editor-theme-code">(2)</span>`.

#####  Pasul 2.3: Rulează ca Administrator

 Dă click dreapta pe **Terminal** (sau Command Prompt) și selectează **Run as administrator** `<span class="editor-theme-code">(3)</span>`.

#####  Pasul 2.4: Deschide fișierul `<span class="editor-theme-code">hosts</span>` în Notepad

 În consola deschisă cu drepturi de Administrator, introdu comanda `<span class="editor-theme-code">(4)</span>` și apasă **Enter**:

```
notepad C:\Windows\System32\drivers\etc\hosts
```

#####  Pasul 2.5: Adaugă înregistrarea DNS locală

 Adaugă la finalul fișierului linia cu IP-ul serverului pe care este contul TRIAL și domeniul tău `<span class="editor-theme-code">(5)</span>`:<span style="color: rgb(255, 255, 255); background-color: rgba(0, 0, 0, 0);">Plaint</span>

<p class="callout danger">La dvs poate fi **alta adresa IP** , e important sa verificati care este la dvs pentru ca setarea corecta depinde de aceasta  
pentru instructiune, consultati punctul ***'***[***1. Detectam IP adresa serverului pe care e hostat site-ul in Plesk***](https://kb.host.md/link/56#bkmrk-1.-detectam-ip-adres)***'***</p>

```
217.26.150.24    site-ul-tau.md
```

*Salvează fișierul:* `<span class="editor-theme-code">Ctrl + S</span>`.  
  
[![image.png](https://kb.host.md/uploads/images/gallery/2026-08/scaled-1680-/Fa1TC4h3S0Z0j0LP-image.png)](https://kb.host.md/uploads/images/gallery/2026-08/Fa1TC4h3S0Z0j0LP-image.png)

#####  

---

---

---

#### **3. Renew / Flush DNS Cache**

[![image.png](https://kb.host.md/uploads/images/gallery/2026-08/scaled-1680-/poMxTBBOkCmLuNMi-image.png)](https://kb.host.md/uploads/images/gallery/2026-08/poMxTBBOkCmLuNMi-image.png)

După salvare, execută tot în Terminal comanda de curățare cache:

```
ipconfig /flushdns
```

---

---

---

#### **4. Verificare rapidă**

[![image.png](https://kb.host.md/uploads/images/gallery/2026-08/scaled-1680-/vJrxLYysXKXdNmUN-image.png)](https://kb.host.md/uploads/images/gallery/2026-08/vJrxLYysXKXdNmUN-image.png)

Verifică dacă sistemul pointează spre noul IP:<span style="color: rgb(255, 255, 255); background-color: rgba(0, 0, 0, 0);">D</span>

```
ping site-ul-tau.md
```

Sau in browser putem deschide Developer Mode, `<span class="editor-theme-code">Ctrl + Shift + I</span>` dupa care deschidem sectiunea `<span class="editor-theme-code">Network</span>` , facem refresh la pagina, in `<span class="editor-theme-code">Remote address</span>` vedem IP-ul .

[![image.png](https://kb.host.md/uploads/images/gallery/2026-08/scaled-1680-/qPsWTqII2RJcs8YR-image.png)](https://kb.host.md/uploads/images/gallery/2026-08/qPsWTqII2RJcs8YR-image.png)

---

---

---