supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: supervision <supervision@list.skarnet.org>
Subject: Re: keeping sites off
Date: Mon, 30 Mar 2020 00:18:27 +0000	[thread overview]
Message-ID: <emd05879fb-3aac-45e4-ab13-6eeee9b3b633@elzian> (raw)
In-Reply-To: <CAKpSnp+-j8bWeQA47djK7z8eLD1BKHprcsE63a5=QciJbOM1JA@mail.gmail.com>

>The problem is that /etc/hosts does not support wildcards, so
>graph.facebook.com (for example) is not filtered. So, is there any
>solution? Should I replace dnscache by something else? (something else
>trustworthy and supervision-friendly) Any other setup compatible with
>dnscache?

  What I do is:
  - run a tinydns on another IP address (if you only have 1 nic, you can
still attribute several IPs to it)
  - fill that tinydns with sink data for the things I want to block
  - configure my dnscache to query my internal DNS server for the zones
I want to block. In your case, if you tell your dnscache that your
internal DNS server is authoritative for the facebook.com zone, any
query for graph.facebook.com will go to your internal server.
  - no /etc/hosts manipulation needed.

--
  Laurent



  parent reply	other threads:[~2020-03-30  0:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-29 20:44 Jorge Almeida
2020-03-29 21:10 ` eric vidal
2020-03-30  0:18 ` Laurent Bercot [this message]
2020-03-30  8:38   ` Jonathan de Boyne Pollard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=emd05879fb-3aac-45e4-ab13-6eeee9b3b633@elzian \
    --to=ska-supervision@skarnet.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).