Jump to content
Compatible Support Forums
Sign in to follow this  
duhmez

make a wildcrd in hosts file? possible?

Recommended Posts

ive been using my hosts file to block bad stuff.

For example I have blocked www.baddomain.com by routing to 127.0.0.1

 

I would like to route

*.baddomain.com to 127.0.0.1

 

I tried this with a

ping hgjtdgvje.baddomain.com and the real ip resolved. Is there a way to do it?

Share this post


Link to post

I didnt mention it but I did also block

baddomain.com and grsgreger.baddomain.com still resolved.

Share this post


Link to post

Can windows DNS server support wildcards? this could be a solution for me. (I have a windows server in my home.

Share this post


Link to post

If you setup your DNS server to be authoritative for a given zone, it will return results for any record in that zone. This behavior includes host names and subdomains for that zone. So, if you are looking for a record in somedomain.com, and your server is hosting that zone, it will state if that record is available or not. Therefore, you can setup that zone with no records in it and any system using that DNS server will never find valid hosts in it.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×