Can regular expression be written in /private/etc/hosts file
Fresh3 days ago
Mar 15, 202618067 viewsConfidence Score0%
0%
Problem
.... Can we write some kind of regular expression or Rule in "hosts" file to redirect certain domains ending .local to certain ip address. like using above domains. // Hosts file path on Mac OS X is /private/etc/hosts and in windows c:/windows/system32/drivers/etc...
Error Output
abc.local xyz.local dumy.local www.google.com local.testserver.net
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Can regular expression be written in /private/etc/hosts file
Low Risk
No, this is not possible. See these related questions: Wildcards in a hosts file Setting up wildcard domains on local host (OS X 10.5)?
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix