TrueNAS CORE Version DocumentationThis content follows the TrueNAS CORE 13.0 releases. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.
/etc/hosts IP Persistence
2 minute read.
Domain Name resolution is the process of mapping host or domain names, such as mytruenas
or truenas1.mycompany.com
, to their associated IP addresses.
This is done by a variety of methods.
The quickest method is to read entries in the hosts file, which is a local text file containing a list of IP addresses mapped to domain/host names.
Every operating system (OS) that communicates through the TCP/IP protocol has a hosts file.
The hosts file can speed up name resolution when a DNS server is not available on the local network. A DNS server runs networking software that allows it to join the Domain Name System. This is the standard service used on the Internet for name resolution. When adding entries to a TrueNAS system hosts file, use the TrueNAS web interface to save the entries directly to the configuration database. Do not edit the hosts file directly, as any changes are overwritten by the configuration database during reboot.