# Pihole + Unbound not working as it should

**URL:** https://discourse.pi-hole.net/t/pihole-unbound-not-working-as-it-should/51381
**Category:** Help
**Tags:** unbound
**Created:** [December 1, 2021, 3:13pm UTC](https://discourse.pi-hole.net/t/pihole-unbound-not-working-as-it-should/51381 "2021-12-01T15:13:13Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [December 1, 2021, 7:54pm UTC](https://discourse.pi-hole.net/t/pihole-unbound-not-working-as-it-should/51381/12 "2021-12-01T19:54:08Z")

</div>

Your last output shows this configuration file that is causing unbound to be a forwarding resolver, not a recursive resolver:

```auto
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf:forward-zone:
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf: name: "."
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf: forward-addr: 1.1.1.1
/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf: forward-addr: 1.0.0.1

```

This is caused by resolvconf running in the current (October 2021) Raspberry Pi release of the native Bullseye image.

If you check in file _ **/etc/resolvconf.conf** _, you will see this as the last line.

```auto
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details

resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
#name_servers=127.0.0.1

# Mirror the Debian package defaults for the below resolvers
# so that resolvconf integrates seemlessly.
dnsmasq_resolv=/var/run/dnsmasq/resolv.conf
pdnsd_conf=/etc/pdnsd.conf
unbound_conf=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf

```

Comment out that last line.

Then, remove the configuration file that Raspbian put into your unbound configuration folder:

`sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf`

Then restart unbound

`sudo service unbound restart`

and unbound will be back in recursive mode.

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-unbound-not-working-as-it-should/51381)._
