make a wildcrd in hosts file? possible?
This is a discussion about make a wildcrd in hosts file? possible? in the Windows Networking category; ive been using my hosts file to block bad stuff. For example I have blocked 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.
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?
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?
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Apr 15
Apr 16
0
1 minute
Responses to this topic
OP
I didnt mention it but I did also block
baddomain.com and grsgreger.baddomain.com still resolved.
baddomain.com and grsgreger.baddomain.com still resolved.
OP
Can windows DNS server support wildcards? this could be a solution for me. (I have a windows server in my home.
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.
OP
l33t solution.