Mac /etc/hosts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Mac =Overview= The equivalent file is /private/etc/hosts.")
 
Line 5: Line 5:


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 a.example.com b.example.com
# End of section
</syntaxhighlight>

Revision as of 02:08, 26 September 2020

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 a.example.com b.example.com
# End of section