Mostra la pàginaRevisions anteriorsQuè hi enllaçaExporta a PDFTorna dalt Aquesta pàgina és només de lectura. Podeu veure'n el codi font, però no podeu canviar-la. Consulteu el vostre administrador si penseu que això és degut a algun error. = 127.0.0.1 VS 127.0.1.1 /via: [[https://askubuntu.com/questions/754213/what-is-difference-between-localhost-address-127-0-0-1-and-127-0-1-1]] As your machine gets started, it will need to know the mapping of some hostnames to IP addresses before DNS can be referenced. This mapping is kept in the ''/etc/hosts'' file. In the absence of a name server, any network program on your system consults this file to determine the IP address that corresponds to a host name. The loopback device is a special, virtual network interface that your computer uses to communicate with itself. It is used mainly for diagnostics and troubleshooting, and to connect to servers running on the local machine. The loopback is interface lo and the IP address is 127.0.0.1 by default. <code>127.0.0.1 localhost</code> Debian, then Ubuntu, choose to define 127.0.1.1 for mapping the IP address of your host_name in case that you have no network. The host_name matches the hostname defined in ''/etc/hostname''. For a system with a permanent IP address, that permanent IP address should be used here instead of 127.0.1.1. <code>127.0.1.1 host_name</code> linux/dns/127.txt Darrera modificació: 07/07/2025 23:48per mate