It happens that /etc/hosts
file doesn’t support wild card entries.
You’ll have to use other services like dnsmasq. To enable it in dnsmasq, just edit dnsmasq.conf
and add the following line:
address=/example.com/127.0.0.1
More Related Contents:
- SSL Multilevel Subdomain Wildcard
- “Could not get any response” response when using postman with subdomain
- What are the allowed characters in a subdomain?
- When should one use a ‘www’ subdomain?
- Create subdomains on the fly with .htaccess (PHP)
- How to find files that match a wildcard string in Java?
- How to use a wildcard in the classpath to add multiple jars? [duplicate]
- Can HTML5 databases and localStorage be shared across subdomains?
- Wildcards in a Windows hosts file
- How can I configure multiple sub domains in Express.js or Connect.js
- Virtualhost For Wildcard Subdomain and Static Subdomain
- Wildcard search for LINQ
- What expands to all files in current directory recursively?
- How to implement glob in C#
- Set cURL to use local virtual hosts
- When to use wildcards in Java Generics?
- Regular Expression – Extract subdomain & domain
- HTML5 Canvas getImageData and Same Origin Policy
- Wildcard equivalent in C# generics
- HTML5 localStorage size limit for subdomains
- Using wildcards in prepared statement – MySQLi
- Nested wildcards
- Rename multiple files in cmd
- How do I get a list of all subdomains of a domain? [closed]
- How to implement a SQL like ‘LIKE’ operator in java?
- Exclude a string from wildcard search in a shell
- What is the equivalent of Java wildcards in C# generics
- Loop over array, preventing wildcard expansion (*)
- Java generics, Unbound wildcards vs
- .htaccess – Redirect subdomain to folder