Score:0

How to allow subdomain in dnsmasq

ma flag

In my dnsmasq.conf file, I use the following rule o block all domains ending with .be:

address=/be/

But I would like to have an exception for youtu.be.

How can I do this?

Score:0
pt flag

This seems to work:

dnsmasq -C /dev/null -k \
  --server=/youtu.be/# \
  --address=/be/ \
  --log-facility=/dev/stdout \
  --log-queries

From the docs for the --server option:

The special server address # means, "use the standard servers", so --server=/google.com/1.2.3.4 --server=/www.google.com/# will send queries for google.com and its subdomains to 1.2.3.4, except www.google.com (and its subdomains) which will be forwarded as usual.

With this running on my local machine:

# dig +short foo.be @localhost
# dig +short youtu.be @localhost
142.250.72.110
ellat avatar
ma flag
Yes, it works! Thank you very much.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.