Mac /etc/hosts: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Mac =Overview= The equivalent file is /private/etc/hosts.") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Mac#Configuration|Mac]] | * [[Mac#Configuration|Mac]] | ||
* [[/etc/hosts]] | |||
=Overview= | =Overview= | ||
The equivalent file is /private/etc/hosts. | The equivalent file is /private/etc/hosts. | ||
=Example= | |||
<syntaxhighlight lang='text'> | |||
## | |||
# Host Database | |||
# | |||
# localhost is used to configure the loopback interface | |||
# when the system is booting. Do not change this entry. | |||
## | |||
127.0.0.1 localhost | |||
255.255.255.255 broadcasthost | |||
::1 localhost | |||
# Added by Docker Desktop | |||
127.0.0.1 kubernetes.docker.internal | |||
# End of section | |||
127.0.0.1 a.local b.local | |||
</syntaxhighlight> |
Latest revision as of 01:28, 22 November 2021
Internal
Overview
The equivalent file is /private/etc/hosts.
Example
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
127.0.0.1 kubernetes.docker.internal
# End of section
127.0.0.1 a.local b.local