Skip to content

PiHole - selecting unbound as recursive does not set 127.0.0.1 unbound as DNS serverΒ #2640

Closed
@m4rkireland

Description

@m4rkireland

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

PiHole

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/pihole.sh)"

πŸ“ Provide a clear and concise description of the issue.

When answering N to Unbound is configured as a recursive DNS server by default, would you like it to be configured as a forwarding DNS server (using DNS-over-TLS (DoT)) instead? <y/N>, before the move to v6, the v5 script would set this up correctly and have 127.0.0.1:5335 as the Custom DNS server, however now it shows the two google IPs

Image

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

No response

πŸ”„ Steps to reproduce the issue.

  🧩  Using Advanced Settings on node pve01
  πŸ–₯️  Operating System: debian
  🌟  Version: 12
  πŸ“¦  Container Type: Unprivileged
  πŸ”  Root Password: ********
  πŸ†”  Container ID: 151
  🏠  Hostname: pihole01
  πŸ’Ύ  Disk Size: 20 GB
  🧠  CPU Cores: 1
  πŸ› οΈ  RAM Size: 1024 MiB
  πŸŒ‰  Bridge: vmbr1
  πŸ“‘  IP Address: 192.168.1.151/24
  🌐  Gateway IP Address: 192.168.1.1
  πŸ“‘  APT-Cacher IP Address: Default
  🚫  Disable IPv6: no
  βš™οΈ  Interface MTU Size: Default
  πŸ”  DNS Search Domain: Host
  πŸ“‘  DNS Server IP Address: Host
  🏷️  Vlan: Default
  πŸ“‘  Tags: community-script;adblock
  πŸ”‘  Root SSH Access: yes
Warning: No SSH key provided.
  πŸ”  Verbose Mode: no
  πŸš€  Creating a Pihole LXC using the above advanced settings
  βœ”οΈ  Using local for Template Storage.
  βœ”οΈ  Using local-nvme for Container Storage.
  βœ”οΈ  Updated LXC Template List
  βœ”οΈ  LXC Template is ready to use.
  βœ”οΈ  LXC Container 151 was successfully created.
  βœ”οΈ  Started LXC Container
  βœ”οΈ  Set up Container OS
  βœ”οΈ  Network Connected: 192.168.1.151 
  βœ”οΈ  IPv4 Internet Connected
  βœ–οΈ  IPv6 Internet Not Connected
  βœ”οΈ  DNS Resolved github.com to 20.26.156.215
  βœ”οΈ  Updated Container OS
  βœ”οΈ  Installed Dependencies
  βœ”οΈ  Installed Pi-hole
Would you like to add Unbound? <y/N> y
Unbound is configured as a recursive DNS server by default, would you like it to be configured as a forwarding DNS server (using DNS-over-TLS (DoT)) instead? <y/N> N
  βœ”οΈ  Installed Unbound
  βœ”οΈ  Cleaned
  βœ”οΈ  Completed Successfully!

  πŸš€  Pihole setup has been successfully initialized!
  πŸ’‘   Access it using the following URL:
    🌐  http://192.168.1.151/admin
root@pve01:~# 

❌ Paste the full error output (if available).

root@pihole01:~# cat /etc/unbound/unbound.conf.d/pi-hole.conf
server:
  verbosity: 0
  interface: 127.0.0.1
  port: 5335
  do-ip6: no
  do-ip4: yes
  do-udp: yes
  do-tcp: yes
  num-threads: 1
  hide-identity: yes
  hide-version: yes
  harden-glue: yes
  harden-dnssec-stripped: yes
  harden-referral-path: yes
  use-caps-for-id: no
  harden-algo-downgrade: no
  qname-minimisation: yes
  aggressive-nsec: yes
  rrset-roundrobin: yes
  cache-min-ttl: 300
  cache-max-ttl: 14400
  msg-cache-slabs: 8
  rrset-cache-slabs: 8
  infra-cache-slabs: 8
  key-cache-slabs: 8
  serve-expired: yes
  serve-expired-ttl: 3600
  edns-buffer-size: 1232
  prefetch: yes
  prefetch-key: yes
  target-fetch-policy: "3 2 1 1 1"
  unwanted-reply-threshold: 10000000
  rrset-cache-size: 256m
  msg-cache-size: 128m
  so-rcvbuf: 1m
  private-address: 192.168.0.0/16
  private-address: 169.254.0.0/16
  private-address: 172.16.0.0/12
  private-address: 10.0.0.0/8
  private-address: fd00::/8
  private-address: fe80::/10

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions