-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ncm-hostsfile: Test IPv6 and dual stack localhosts
In these we show how dual stack entries can set takeover and overwrite the existing localhost entry or not, specifying aliases for both stacks that allow `localhost` to resolve for both protocols while still avoiding duplicate entries.
- Loading branch information
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
object template dual_stack_localhost; | ||
|
||
include 'components/hostsfile/config'; | ||
|
||
prefix '/software/components/hostsfile'; | ||
|
||
'active' = true; | ||
'file' = '/tmp/hosts.local'; | ||
'takeover' = true; | ||
|
||
# IPv4 | ||
'entries' = merge(SELF, HOSTSFILE_LOCALHOST4); | ||
|
||
# IPv6 | ||
'entries' = merge(SELF, HOSTSFILE_LOCALHOST6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
object template ipv6; | ||
|
||
include 'components/hostsfile/config'; | ||
|
||
prefix '/software/components/hostsfile'; | ||
|
||
'active' = true; | ||
'file' = '/tmp/hosts.local'; | ||
|
||
'entries' = merge(SELF, HOSTSFILE_LOCALHOST6); |