zoonderkins / blahdns

A small hobby ads block dns project with doh, dot, dnscrypt support.
https://blahdns.com
GNU Affero General Public License v3.0
431 stars 25 forks source link

🐛 Error of blocklist for unbound. #296

Closed yutayu closed 3 months ago

yutayu commented 3 months ago

Checklist

Describe the issue A clear and concise description of what the issue is. blocklist syntax error in unbound

/etc/unbound/conf.d/blahdns_unbound.conf:8: error: syntax error read /etc/unbound/unbound.conf failed: 1 errors in configuration file

To Reproduce Steps to reproduce the behavior:

  1. ...let unbound read blocklist for unbound
  2. ...

Expected behavior A clear and concise description of what you expected to happen.

Logs (optional) If applicable, add logs or screenshots to help explain your problem.

If you can reproduce the issue, please describe it below.

Server if applicable):

Client (if applicable):

Additional context Add any other context about the problem here.

zoonderkins commented 3 months ago

Hi, I've update the Unbound conf please try this out https://github.com/zoonderkins/blahdns/blob/master/client-conf/unbound.conf

yutayu commented 3 months ago

/etc/unbound/conf.d/blahdns_unbound.conf:8: error: syntax error read /etc/unbound/unbound.conf failed: 1 errors in configuration file

I mean that 8th line of blocklist is bad.

zoonderkins commented 3 months ago

Can you paste it here the complete conf
/etc/unbound/conf.d/blahdns_unbound.conf

yutayu commented 3 months ago

I reinstalled OS and lost it. Hold on.

yutayu commented 3 months ago

Unbound

https://github.com/zoonderkins/blahdns/blob/4a866af94b8df4624751fb65f050d60712f74699/hosts/README.md?plain=1#L2

/etc/unbound/unbound.conf.d/blahdns_unbound.conf:8: error: syntax error, is there no section start after an include-toplevel directive perhaps. read /etc/unbound/unbound.conf failed: 1 errors in configuration file [1713544291] unbound-control[26799:0] fatal error: could not read config file

zoonderkins commented 3 months ago

Maybe delete entire conf you copied from old README and replace only forward-zone instead.

    forward-zone:
        name: "."
        forward-tls-upstream: yes

        forward-addr: 212.52.0.233@853#dot-jp.blahdns.com
yutayu commented 3 months ago

I didn't notice readme is old. I use blahdns through dnscrypt and it works well. Much Thanks :)