Compatible Support Forums: make a wildcrd in hosts file? possible?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

make a wildcrd in hosts file? possible?

#1 User is offline   duhmez 

  • addict
  • Group: Members
  • Posts: 583
  • Joined: 27-April 02

Posted 15 April 2004 - 09:00 AM

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?
0

#2 User is offline   duhmez 

  • addict
  • Group: Members
  • Posts: 583
  • Joined: 27-April 02

Posted 15 April 2004 - 11:38 PM

I didnt mention it but I did also block
baddomain.com and grsgreger.baddomain.com still resolved.
0

#3 User is offline   duhmez 

  • addict
  • Group: Members
  • Posts: 583
  • Joined: 27-April 02

Posted 16 April 2004 - 05:04 AM

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

#4 User is offline   clutch 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 3859
  • Joined: 29-March 00

Posted 16 April 2004 - 05:26 AM

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.
0

#5 User is offline   duhmez 

  • addict
  • Group: Members
  • Posts: 583
  • Joined: 27-April 02

Posted 16 April 2004 - 06:21 AM

l33t solution.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users