-
. WIKIMERIONET
Merion Mertics , ,

CRM

4

hosts Windows, Mac Linux IP-. hosts , . IP- ( ), , - (DNS) IP-.

   Hosts  Linux, Windows  Mac

, hosts Linux, Windows Mac.


Hosts Linux

1: ( )

Linux -> -> , "Open Terminal" ( ).

2: Hosts

hosts Linux, :

sudo vim /etc/hosts

- , hosts .

3:

hosts Linux , IP- , - .

0.0.0.0 server.domain.com

, . , , # .

hosts

(:wq vim).

4 (): Name Service

hosts . Linux , , IP-. nsswitch.conf. DNS , hosts DNS.

, :

cat /etc/nsswitch.conf
nsswitch.conf

hosts. , files. - DNS , nsswitch.conf :

sudo vim /etc/nsswitch.conf

hosts: , files , dns - .


Hosts Windows

1:

.

  1. Windows . .
  2. .
  3. Windows , ? .

2: Windows Hosts

  1. ->
  2. C:\windows\system32\drivers\etc
  3. , , , .
  4. hosts .
etc

3:

hosts , . :

0.0.0.0 server.domain.com

- IP-, . IP- IP- -.

- , IP-, .

hosts

, ( -> ) .

Windows , # .

# 0.0.0.0 server.domain.com

Hosts Mac

1: Mac

Finder -> -> :

sudo nano /private/etc/hosts

- , . Enter.

2. Hosts

IP- , - . #. :

0.0.0.0 server.domain.com

IP-, , , ( ), .

hosts

, Command + O, , Command + X.