-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.hosts
35 lines (35 loc) · 1.27 KB
/
test.hosts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ----------------
# First preference:
# - find a unique first_tail, and use that, eg 127.0.0.1 and ::1
127.0.0.1 localhost localhost4 localhost.localdomain # ipv4
::1 localhost localhost6 # ipv6
# Second preference:
# - find a unique value (other than the first one) and use that, eg canonical
192.0.2.2 chosen1 alias2a
192.0.2.2 canonical chosen2 alias2
192.0.2.2 canonical chosen3 alias3
# ----------------
# Third preference
# - find a unique combination of first_tail and another tail
192.0.2.31 third_preference alias3a
192.0.2.31 third_preference alias3b
192.0.2.32 third_preference alias3a
192.0.2.32 third_preference alias3b
# ----------------
# Fourth preference
# - cannot find a _suitable_ unique tail, just append a position within the set of first-tails
192.0.2.4 fourth alias4 ignored1
192.0.2.4 fourth alias4 ignored2
# ----------------
# "double-quoted"
# 'single quoted'
# Comment tab-> <-tab
# Comment \backslash \\double-backslash
# Repeated comment
# Repeated comment
# ----------------
# [])(|.*?$^\ regexp challenge
# The following entries need to have an alias appended
# so that the "Second Preference" can be used above for alias2 and alias3
192.0.2.99 canonical_re alias
192.0.2.99 canonical.re alias