[GH-ISSUE #112] [feature] Read out hosts file for localhost and 127.0.0.1 aliases #63

Closed
opened 2026-02-25 22:32:30 +03:00 by kerem · 1 comment
Owner

Originally created by @pke on GitHub (Jan 9, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/112

Would save some keystrokes if the tool would read out the hosts file optionally. All ::1, localhost and 127.0.0.1 entries could then be used as input for mkcert.
mkcert --hosts

Would that make sense as a PR?

Originally created by @pke on GitHub (Jan 9, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/112 Would save some keystrokes if the tool would read out the hosts file optionally. All ::1, localhost and 127.0.0.1 entries could then be used as input for mkcert. `mkcert --hosts` Would that make sense as a PR?
kerem closed this issue 2026-02-25 22:32:30 +03:00
Author
Owner

@FiloSottile commented on GitHub (Jan 9, 2019):

I like that mkcert is not specific to localhost (aside from the marketing), and is not tied to any way of directing traffic (hosts files, docker IPs, staging servers...), so I think that tips the scales towards not including this, although I see it could be useful. It could also easily be a wrapper script.

<!-- gh-comment-id:452889545 --> @FiloSottile commented on GitHub (Jan 9, 2019): I like that mkcert is not specific to localhost (aside from the marketing), and is not tied to any way of directing traffic (hosts files, docker IPs, staging servers...), so I think that tips the scales towards not including this, although I see it could be useful. It could also easily be a wrapper script.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#63
No description provided.