Pomoc Pi Hole na Dockerze, jak skofigurować?

krystianen

System Engineer
Q Specialist
25 Styczeń 2010
101
9
18
Poznań
QNAP
TS-x53
Ethernet
1 GbE
Wersja oprogramowania Firmware: 4.4.1 Build 20YYMMDD
Model serwera: QNAP TS-251A

Zainstalowałem PI HOLE na dockerze jednak podczas uruchomienia mam bład

Czy ktoś się spotkał z takim problemem?

Kod:
[✗] DNS resolution is currently unavailable

Doszukałem się że musze ze musze zedytować DNSy w pliku /etc/resolf.conf tylko nie wiem jak sie mam do niego stać. Bo wyrzuceniu w/w błedy pi hole sie wylacza.

Kod:
 ::: Starting docker specific checks & setup for docker pihole/pihole                                                                                                                                                                                                                                                     
WARNING Misconfigured DNS in /etc/resolv.conf: Two DNS servers are recommended, 127.0.0.1 and any backup server                                                                                                                                                                                                           
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 127.0.0.11)                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                                                         
nameserver 127.0.0.11                                                                                                                                                                                                                                                                                                     
options ndots:0                                                                                                                                                                                                                                                                                                           
Assigning random password: -6wj8quc                                                                                                                                                                                                                                                                                       
  [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u5                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                         
  [i] Installing configs from /etc/.pihole...                                                                                                                                                                                                                                                                             
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!                                                                                                                                                                                                                                             
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf                                                                                                                                                                                                                                                             
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory                                                                                                                                                                                                                                                 
Setting password: -6wj8quc                                                                                                                                                                                                                                                                                               
+ pihole -a -p -6wj8quc -6wj8quc                                                                                                                                                                                                                                                                                         
  [✓] New password set                                                                                                                                                                                                                                                                                                   
Using default DNS servers: 8.8.8.8 & 8.8.4.4                                                                                                                                                                                                                                                                             
DNSMasq binding to default interface: eth0                                                                                                                                                                                                                                                                               
Added ENV to php:                                                                                                                                                                                                                                                                                                         
                        "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",                                                                                                                                                                                                                                                 
                        "ServerIP" => "0.0.0.0",                                                                                                                                                                                                                                                                         
                        "VIRTUAL_HOST" => "0.0.0.0",                                                                                                                                                                                                                                                                     
Using IPv4 and IPv6                                                                                                                                                                                                                                                                                                       
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))                                                                                                                                                                                                                             
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts                                                                                                                                                                                                                                                         
https://mirror1.malwaredomains.com/files/justdomains                                                                                                                                                                                                                                                                     
http://sysctl.org/cameleon/hosts                                                                                                                                                                                                                                                                                         
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt                                                                                                                                                                                                                                                         
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt                                                                                                                                                                                                                                                               
https://hosts-file.net/ad_servers.txt                                                                                                                                                                                                                                                                                     
::: Testing pihole-FTL DNS: FTL started!                                                                                                                                                                                                                                                                                 
::: Testing lighttpd config: Syntax OK                                                                                                                                                                                                                                                                                   
::: All config checks passed, cleared for startup ...                                                                                                                                                                                                                                                                     
::: Docker start setup complete                                                                                                                                                                                                                                                                                         
  [i] Pi-hole blocking is enabled                                                                                                                                                                                                                                                                                         
  [✗] DNS resolution is currently unavailable                                                                                                                                                                                                                                                                             
  [✗] DNS resolution is not available                                                                                                                                                                                                                                                                                     
[cont-init.d] 20-start.sh: exited 1.                                                                                                                                                                                                                                                                                     
[cont-finish.d] executing container finish scripts...                                                                                                                                                                                                                                                                     
[cont-finish.d] done.                                                                                                                                                                                                                                                                                                     
[s6-finish] syncing disks.                                                                                                                                                                                                                                                                                               
[s6-finish] sending all processes the TERM signal.                                                                                                                                                                                                                                                                       
[s6-finish] sending all processes the KILL signal and exiting.
 
1675114289307.png

Kod:
2023-01-30T21:02:13.539365448Z   [i] Enabling Query Logging
2023-01-30T21:02:14.128472784Z Duplicate config variable in conditional 2 global / $HTTP["url"] == "/" / $HTTP["host"] == "192.168.0.222": url.redirect
2023-01-30T21:02:14.128519164Z 2023-01-30 21:02:13: configfile.c.1970) source: /etc/lighttpd/conf-enabled/15-pihole-admin-redirect-docker.conf line: 7 pos: 5 parser failed somehow near here: (EOL)
2023-01-30T21:02:14.128537392Z 2023-01-30 21:02:13: configfile.c.1970) source: /etc/lighttpd/lighttpd.conf line: 50 pos: 15 parser failed somehow near here: (EOL)
2023-01-30T21:02:14.133005844Z s6-rc: info: service _startup successfully started
2023-01-30T21:02:14.133218964Z s6-rc: info: service pihole-FTL: starting
2023-01-30T21:02:14.136458244Z s6-rc: info: service pihole-FTL successfully started
2023-01-30T21:02:14.136797676Z s6-rc: info: service lighttpd: starting
2023-01-30T21:02:14.150501448Z s6-rc: info: service lighttpd successfully started
2023-01-30T21:02:14.151296568Z s6-rc: info: service _postFTL: starting
2023-01-30T21:02:14.154970008Z s6-rc: info: service _postFTL successfully started
2023-01-30T21:02:14.158038876Z   [i] Testing lighttpd config:   Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
2023-01-30T21:02:14.159277312Z s6-rc: info: service legacy-services: starting
2023-01-30T21:02:14.166690876Z [21:02:14.166345] STUBBY: Stubby version: Stubby 0.3.0
2023-01-30T21:02:14.173566984Z [21:02:14.173384] STUBBY: Read config from file /config/stubby.yml
2023-01-30T21:02:14.176298436Z s6-rc: info: service legacy-services successfully started
2023-01-30T21:02:22.329237552Z   [✗] DNS resolution is currently unavailable
2023-01-30T21:05:08.569135200Z s6-rc: info: service legacy-services: stopping
2023-01-30T21:05:08.573454840Z s6-rc: info: service legacy-services successfully stopped
2023-01-30T21:05:08.573615124Z s6-rc: info: service _postFTL: stopping
2023-01-30T21:05:08.580943020Z s6-rc: info: service _postFTL successfully stopped
2023-01-30T21:05:08.580989556Z s6-rc: info: service lighttpd: stopping

-30T21:05:08.583349764Z   [i] Time until retry: 120
  [i] Time until retry: 120
  [i] Time until retry: 119
  [i] Time until retry: 118
  [i] Time until retry: 117
  [i] Time until retry: 116
  [i] Time until retry: 115
  [i] Time until retry: 114
  [i] Time until retry: 113
  [i] Time until retry: 112
  [i] Time until retry: 111
  [i] Time until retry: 110
  [i] Time until retry: 109
  [i] Time until retry: 108
  [i] Time until retry: 107
  [i] Time until retry: 106
  [i] Time until retry: 105
  [i] Time until retry: 104
  [i] Time until retry: 103
  [i] Time until retry: 102
  [i] Time until retry: 101
  [i] Time until retry: 100
  [i] Time until retry: 99
  [i] Time until retry: 98
  [i] Time until retry: 97
  [i] Time until retry: 96
  [i] Time until retry: 95
  [i] Time until retry: 94
  [i] Time until retry: 93
  [i] Time until retry: 92
  [i] Time until retry: 91
  [i] Time until retry: 90
  [i] Time until retry: 89
  [i] Time until retry: 88
  [i] Time until retry: 87
  [i] Time until retry: 86
  [i] Time until retry: 85
  [i] Time until retry: 84
  [i] Time until retry: 83
  [i] Time until retry: 82
  [i] Time until retry: 81
  [i] Time until retry: 80
  [i] Time until retry: 79
  [i] Time until retry: 78
  [i] Time until retry: 77
  [i] Time until retry: 76
  [i] Time until retry: 75
  [i] Time until retry: 74
  [i] Time until retry: 73
  [i] Time until retry: 72
  [i] Time until retry: 71
  [i] Time until retry: 70
  [i] Time until retry: 69
  [i] Time until retry: 68
  [i] Time until retry: 67
  [i] Time until retry: 66
  [i] Time until retry: 65
  [i] Time until retry: 64
  [i] Time until retry: 63
  [i] Time until retry: 62
  [i] Time until retry: 61
  [i] Time until retry: 60
  [i] Time until retry: 59
  [i] Time until retry: 58
  [i] Time until retry: 57
  [i] Time until retry: 56
  [i] Time until retry: 55
  [i] Time until retry: 54
  [i] Time until retry: 53
  [i] Time until retry: 52
  [i] Time until retry: 51
  [i] Time until retry: 50
  [i] Time until retry: 49
  [i] Time until retry: 48
  [i] Time until retry: 47
  [i] Time until retry: 46
  [i] Time until retry: 45
  [i] Time until retry: 44
  [i] Time until retry: 43
  [i] Time until retry: 42
  [i] Time until retry: 41
  [i] Time until retry: 40
  [i] Time until retry: 39
  [i] Time until retry: 38Stopping lighttpd
2023-01-30T21:05:08.605590912Z s6-rc: info: service lighttpd successfully stopped
2023-01-30T21:05:08.606254188Z s6-rc: info: service pihole-FTL: stopping
2023-01-30T21:05:08.614147824Z Stopping pihole-FTL
2023-01-30T21:05:08.619488124Z s6-rc: info: service pihole-FTL successfully stopped
2023-01-30T21:05:08.620460904Z s6-rc: info: service _startup: stopping
2023-01-30T21:05:08.623534884Z s6-rc: info: service _startup successfully stopped
2023-01-30T21:05:08.624407776Z s6-rc: info: service _uid-gid-changer: stopping
2023-01-30T21:05:08.626783392Z s6-rc: info: service _uid-gid-changer successfully stopped
2023-01-30T21:05:08.627319528Z s6-rc: info: service cron: stopping
2023-01-30T21:05:08.634778464Z Stopping cron
2023-01-30T21:05:08.640065352Z s6-rc: info: service cron successfully stopped
2023-01-30T21:05:08.640344676Z s6-rc: info: service legacy-cont-init: stopping
2023-01-30T21:05:08.651090160Z s6-rc: info: service legacy-cont-init successfully stopped
2023-01-30T21:05:08.651751288Z s6-rc: info: service fix-attrs: stopping
2023-01-30T21:05:08.654087184Z s6-rc: info: service fix-attrs successfully stopped
2023-01-30T21:05:08.654954976Z s6-rc: info: service s6rc-oneshot-runner: stopping
2023-01-30T21:05:08.658946776Z s6-rc: info: service s6rc-oneshot-runner successfully stopped
2023-01-30T21:28:33.762634332Z s6-rc: info: service s6rc-oneshot-runner: starting
2023-01-30T21:28:33.766565628Z s6-rc: info: service s6rc-oneshot-runner successfully started
2023-01-30T21:28:33.766911588Z s6-rc: info: service fix-attrs: starting
2023-01-30T21:28:33.773521092Z s6-rc: info: service fix-attrs successfully started
2023-01-30T21:28:33.773781084Z s6-rc: info: service legacy-cont-init: starting
2023-01-30T21:28:33.780241332Z s6-rc: info: service legacy-cont-init successfully started
2023-01-30T21:28:33.780283164Z s6-rc: info: service cron: starting
2023-01-30T21:28:33.783139068Z s6-rc: info: service cron successfully started
2023-01-30T21:28:33.783393516Z s6-rc: info: service _uid-gid-changer: starting
2023-01-30T21:28:33.790543500Z s6-rc: info: service _uid-gid-changer successfully started
2023-01-30T21:28:33.790837716Z s6-rc: info: service _startup: starting
2023-01-30T21:28:33.795728688Z ServerIP is deprecated. Converting to FTLCONF_LOCAL_IPV4
2023-01-30T21:28:33.827994792Z   [i] Starting docker specific checks & setup for docker pihole/pihole
2023-01-30T21:28:33.828237840Z   [i] Setting capabilities on pihole-FTL where possible
2023-01-30T21:28:33.837377292Z   [i] Applying the following caps to pihole-FTL:
2023-01-30T21:28:33.837594300Z         * CAP_CHOWN
2023-01-30T21:28:33.837614472Z         * CAP_NET_BIND_SERVICE
2023-01-30T21:28:33.837645360Z         * CAP_NET_RAW
2023-01-30T21:28:33.837662832Z         * CAP_NET_ADMIN
2023-01-30T21:28:33.848459940Z   [i] Ensuring basic configuration by re-running select functions from basic-install.sh
2023-01-30T21:28:33.848620932Z
2023-01-30T21:28:33.848678244Z   [i] Installing configs from /etc/.pihole...
2023-01-30T21:28:33.854338932Z   [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
2023-01-30T21:28:33.858861096Z   [i] Installing /etc/dnsmasq.d/01-pihole.conf...
  [✓] Installed /etc/dnsmasq.d/01-pihole.conf
2023-01-30T21:28:33.882409608Z   [i] Installing /etc/.pihole/advanced/06-rfc6761.conf...
  [✓] Installed /etc/dnsmasq.d/06-rfc6761.conf
2023-01-30T21:28:33.960723444Z
2023-01-30T21:28:33.967756404Z   [i] Installing latest logrotate script...
2023-01-30T21:28:33.968030436Z     [i] Existing logrotate file found. No changes made.
2023-01-30T21:28:33.994420332Z   [i] Assigning password defined by Environment Variable
2023-01-30T21:28:34.098335016Z   [✓] New password set
2023-01-30T21:28:34.146986088Z   [i] Added ENV to php:
2023-01-30T21:28:34.150159668Z                     "TZ" => "Europe/London",
2023-01-30T21:28:34.150210056Z                     "PIHOLE_DOCKER_TAG" => "",
2023-01-30T21:28:34.150228080Z                     "PHP_ERROR_LOG" => "/var/log/lighttpd/error-pihole.log",
2023-01-30T21:28:34.150244280Z                     "CORS_HOSTS" => "",
2023-01-30T21:28:34.150260168Z                     "VIRTUAL_HOST" => "192.168.0.222",
2023-01-30T21:28:34.154786940Z   [i] Using IPv4
2023-01-30T21:28:34.158283272Z   [i] Preexisting ad list /etc/pihole/adlists.list detected (exiting setup_blocklists early)
2023-01-30T21:28:34.158638508Z   [i] Converting DNS1 to PIHOLE_DNS_
2023-01-30T21:28:34.158821544Z   [i] Converting DNS2 to PIHOLE_DNS_
2023-01-30T21:28:34.159001868Z   [i] Setting DNS servers based on PIHOLE_DNS_ variable
2023-01-30T21:28:34.194011052Z   [i] Applying pihole-FTL.conf setting LOCAL_IPV4=192.168.0.222
2023-01-30T21:28:34.214729064Z   [i] FTL binding to custom interface: br0
2023-01-30T21:28:34.238567604Z   [i] Enabling Query Logging
2023-01-30T21:28:34.818728508Z Duplicate config variable in conditional 2 global / $HTTP["url"] == "/" / $HTTP["host"] == "192.168.0.222": url.redirect
2023-01-30T21:28:34.818775884Z 2023-01-30 21:28:34: configfile.c.1970) source: /etc/lighttpd/conf-enabled/15-pihole-admin-redirect-docker.conf line: 7 pos: 5 parser failed somehow near here: (EOL)
2023-01-30T21:28:34.818793632Z 2023-01-30 21:28:34: configfile.c.1970) source: /etc/lighttpd/lighttpd.conf line: 50 pos: 15 parser failed somehow near here: (EOL)
2023-01-30T21:28:34.823408748Z s6-rc: info: service _startup successfully started
2023-01-30T21:28:34.823604108Z s6-rc: info: service pihole-FTL: starting
2023-01-30T21:28:34.826861316Z s6-rc: info: service pihole-FTL successfully started
2023-01-30T21:28:34.827282240Z s6-rc: info: service lighttpd: starting
2023-01-30T21:28:34.840619832Z s6-rc: info: service lighttpd successfully started
2023-01-30T21:28:34.841612496Z s6-rc: info: service _postFTL: starting
2023-01-30T21:28:34.847164176Z s6-rc: info: service _postFTL successfully started
2023-01-30T21:28:34.849100640Z   [i] Testing lighttpd config:   Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
2023-01-30T21:28:34.850077116Z s6-rc: info: service legacy-services: starting
2023-01-30T21:28:34.850621412Z [21:28:34.850167] STUBBY: Stubby version: Stubby 0.3.0
2023-01-30T21:28:34.857679296Z [21:28:34.857402] STUBBY: Read config from file /config/stubby.yml
2023-01-30T21:28:34.891503132Z s6-rc: info: service legacy-services successfully started
2023-01-30T21:28:42.929340024Z   [✗] DNS resolution is currently unavailable


tak mam i u góry log :) i reklamy nadal są :p
 
proponował bym zacząć od stworzenia na routerze hosta PIHOLE o adresie jak podałeś nawet z wirtualnym Mac adresem
Połączono posty:

zrób restart dhcp i firewall na routerze
Połączono posty:

1675114523522.png

Połączono posty:

jaki masz router? oprogramowanie?
 
problem w tym, że na router nie jestem w stanie w ogóle się dostać, DNSy w urządzeniach podane na sztywno na takie jaki adres jak ma pihole ( 192.168.0.222 ) pewnie brakuje mu list, żeby to blokować ale nie mogę ich pobrać bo mam problem z tym DNS Resolve...
1675114702774.png


1675114738235.png


1675114722521.png

1675114801151.png

Połączono posty:

proponował bym zacząć od stworzenia na routerze hosta PIHOLE o adresie jak podałeś nawet z wirtualnym Mac adresem
Połączono posty:

zrób restart dhcp i firewall na routerze
Połączono posty:

Pokaż załącznik 42000
Połączono posty:

jaki masz router? oprogramowanie?
od provaidera z vectry, nie jestem w ogóle w stanie się na niego zalogować...
 
oki spróbuję na weekend to ogarnąć i sprawdzić czy się coś zmieni myślałem, że temat pihole będzie łatwy na qnapie a miałem tyle pomysłów na jego wykorzystanie, aż boje się pomyśleć co dalej :) ale chociaż czegoś nowego człowiek się uczy :) dziękuje za pomoc i cierpliwość @bulgar71 @pigers @3QN oraz całej reszcie :)
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. pihole
  2. netflix
  3. container sieć
  4. container settings
  5. samsung evo 970
  6. docker status
  7. localhost docker
  8. pi hole
  9. ubuntu station
  10. adguard
  11. switch do 10 gbe