make a wildcrd in hosts file? possible?
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 on our website and join the conversation
This topic is archived. New comments cannot be posted and votes cannot be cast.
Responses to this topic
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.