The task appeared to transfer all the DNS of the PC to one specific DNS server raised on the Bind9.

The task is as follows:

  • Raise the DNS server (it does not matter Bind9 or whatever)
  • Listen to traffic to certain sites, as well as filter queries and results from requests for certain words. For example: stole, deleted, received, sent, etc.

DNS successfully raised to Bind9. I receive a request, pass the ip of the original site. What to do next? What software is needed?

  • For the future, check at least typos in the message. - edem

1 answer 1

As I understand, we are talking about http traffic? Then I can offer Privoxy. This proxy server allows you to write your own regular expression filters that can filter the content received by users. As a bonus - with it you can get rid of advertising on sites. But if all you need is the ability to filter content - then disable all standard actionsfiles in the configuration and create your own. It will need to specify the name of the filter and the list of sites to which it applies. In the user.filter file, create a filter with the same name and put the necessary regular expression there.

  • But how to do that when requesting a DNS .. Is the ip proxy transmitted and when prompted for a proxy, the site that the client requested was displayed? - Alex Mixayelovich Sokolov
  • @Alex Mixayelovich Sokolov - maybe I did not fully understand the goal, but what does the DNS have to do with it? What kind of requests need to filter? From the content of the sites or from their name? Can you give an example, please? You need to listen to all HTTP traffic to sites, and if it contains words like "stole", "deleted", "received", "sent", then you need to filter it in a certain way, what would the user see something else in the end? But this is not related to the domain name system. - MANKK
  • The question has already been decided, thank you very much. Your advice helped. - Alex Mixayelovich Sokolov