Hi everyone,
I would need to run a few commands in pihole to test is working as a DNS resolver, but I don't understand how to do this.
I mean, I don't know where a command prompt is.
Can you help me figure it out?
Thanks
How to run commands in pihole installed as a docker in OMV
-
- OMV 4.x
- vaultluke
-
-
Something like
docker exec -it pihole if pihole is the name of the container -
Something like
docker exec -it pihole if pihole is the name of the containerNeed I to run this command in Shellinabox?
I executed this command:
docker exec -it pihole dig google.com
and got this:
Code
Alles anzeigenroot@openmediavault:~# docker exec -it pihole dig google.com ; <<>> DiG 9.10.3-P4-Debian <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41700 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1452 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 254 IN A 216.58.198.14 ;; Query time: 35 msec ;; SERVER: 127.0.0.11#53(127.0.0.11) ;; WHEN: Sat Feb 29 13:54:36 CET 2020 ;; MSG SIZE rcvd: 55
Is pihole runnign as a DNS resolver?
Thanks -
With docker exec -it pihole you open a shell inside the container. You get a different prompt. From there you can execute the commands like
dig google.com
For me your output looks correct. When you test dig a-ads.com the answer section should show "0.0.0.0"
-
With docker exec -it pihole you open a shell inside the container. You get a different prompt. From there you can execute the commands like
I think it has to be docker exec -it pihole bash to get to the shell
-
I think it has to be docker exec -it pihole bash to get to the shell
But is it ok to run that command in the shellunabox's web client?
I executed this:
dig a-ads.com
and got this code:
Code
Alles anzeigenroot@openmediavault:~# docker exec -it pihole bash root@pinet:/# dig a-ads.com ; <<>> DiG 9.10.3-P4-Debian <<>> a-ads.comdig a-ads.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8539 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1452 ;; QUESTION SECTION: ;a-ads.comdig. IN A ;; AUTHORITY SECTION: . 8024 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2020022900 1800 900 604800 86400 ;; Query time: 266 msec ;; SERVER: 127.0.0.11#53(127.0.0.11) ;; WHEN: Sat Feb 29 16:27:45 CET 2020 ;; MSG SIZE rcvd: 116 ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24477 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1452 ;; QUESTION SECTION: ;a-ads.com. IN A ;; ANSWER SECTION: a-ads.com. 175 IN A 104.26.15.247 a-ads.com. 175 IN A 104.26.14.247 ;; Query time: 501 msec ;; SERVER: 127.0.0.11#53(127.0.0.11) ;; WHEN: Sat Feb 29 16:27:45 CET 2020 ;; MSG SIZE rcvd: 70
No 0.0.0.0 as far as I can see above
Thanks
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!