What's new

Unbound [solved] unblock country

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

amplatfus

Senior Member
Hi,

Could you please help me to unblock country?
I have this:
Code:
A:Option ==> adblock country

    Blocked country domain
local-zone: "DE" always_nxdomain
local-zone: "IS" always_nxdomain
local-zone: "NL" always_nxdomain
local-zone: "RO" always_nxdomain
local-zone: "US" always_nxdomain
local-zone: "cn" always_nxdomain
local-zone: "ru" always_nxdomain
But when I cannot find all in blockhost list.
Code:
cat /opt/share/unbound/configs/blockhost
ru
cn
Please, how can I delete below countries from nxdomain?
local-zone: "DE" always_nxdomain
local-zone: "IS" always_nxdomain
local-zone: "NL" always_nxdomain
local-zone: "RO" always_nxdomain
local-zone: "US" always_nxdomain

Thank you,
amplatfus
 
Hi,
I discovered that if I delete all content of the file /opt/share/unbound/configs/blockhost those countries are removed too.
Please, could it be because I am using this file to block custom sites, not only contries? I mean I have something like this:
Code:
ru
cn
0002.bestgarcinnialing.eu
0008d6ba2e.com
000info.com
001host.net
001inviteu.carsecret.hop.clickbank.net
0024ad98dd.com
0025.gaa08056.bestgarcinniawa.eu
002777.xyz
0035dc4e2.bestgarciniaahap.eu
0035dc4e2.bestgarcinniama.eu
003store.com
Could you please advice?

Thanks,
amplatfus
 
Thank you for reply.
Solved:
The root cause was that I added some comments like below in /opt/share/unbound/configs/blockhost file:
Code:
atlantic.census.shodan.io # DE
atlantic.dns.shodan.io # US

After comment deletion those countries disappeared.

Thank you,
amplatfus
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top