[Dnsmasq-discuss] Change dns result for FACEBOOK.COM
Jorge Bastos
mysql.jorge at decimal.pt
Wed May 31 09:20:20 BST 2017
Howdy,
Oh that's nice, I even use that for local AD redirection.
Meanwhile, while looking at the config again, I just saw that there's a:
# --address (and --server) work with IPv6 addresses too.
#address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
Which is exactly what I want, I could use your example but in this
particular case, I want to put users to see a message why they can't
access facebook.
Thanks for the help :)
On 2017-05-30 0:42, wkitty42 at gmail.com wrote:
> On 05/29/2017 07:18 AM, Jorge Bastos wrote:
>
>> Howdy,
>>
>> I'd like to change the result of some dns query's, in particular, I
>> want to change the result of the query for FACEBOOK.COM.
>>
>> Is this possible with dnsmasq?
>
> absolutely...
>
> in your dnsmasq.conf file, add the following lines...
>
> # block these domains with NXDOMAIN
> server=/example.com/
> server=/facebook.com/
> server=/fbcdn.net/
> server=/fbcdn.com/
> server=/facebook.net/
>
> and you should look in the manual about the use of this config verb so
> that you understand it more fully than this simple example can provide
> ;)
More information about the Dnsmasq-discuss
mailing list