Windows – Can regular expression be written in /private/etc/hosts file

hosts-filemacnetworkingwindows

abc.local
xyz.local
dumy.local
www.google.com
local.testserver.net

….

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.

192.168.0.10 *.local
192.168.0.1 www.*
192.168.0.100 local.*.*

// Hosts file path on Mac OS X is /private/etc/hosts and in windows c:/windows/system32/drivers/etc…

Best Answer

No, this is not possible.

See these related questions: