Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aliases #1

Open
4 tasks
richardszalay opened this issue Jan 29, 2017 · 0 comments
Open
4 tasks

Add support for aliases #1

richardszalay opened this issue Jan 29, 2017 · 0 comments

Comments

@richardszalay
Copy link
Owner

The hosts format actually uses:

127.0.0.1 host.local alias1.host.local alias2.host.local

  • Add an Aliases property to HostEntry
  • Add a third parameter (-Aliases) to Add-HostEntry that can either be a string or an array
  • Have Get-HostEntry match against aliases
  • Have Remove-HostEntry remove an alias when not matched against the primary

TODO: Should the entire entry still be removed when the primary host is removed, even though there are aliases remaining? I'm thinking yes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant