Hi,
Migrated existing Pi-hole v5 to v6 on Pi1
Here the Dashboard Displays the Hostnames
Created a second instance on a different Pi from scratch
Here the Dashboard don't Display the Hostnames
On both I have created under Local DNS Records a Domain name for the corresponding IP address.
Both Pi1 and Pi2 sits on same router but on separate subnets 192.168.1.0 / 192.168.2.0
On Pi1 the command dig @192.168.1.1 skyq-2 shows:
; <<>> DiG 9.16.44-Debian <<>> @192.168.1.1 skyq-2
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16975
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;skyq-2. IN A
;; ANSWER SECTION:
skyq-2. 0 IN A 192.168.1.21
;; Query time: 11 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Fri Jan 05 12:35:37 GMT 2024
;; MSG SIZE rcvd: 51
While same command on Pi2 dig @192.168.2.1 Echopad misses the Answer part:
Hi there,
Thanks for coming back to me
Checked the Query Longs on both and as far as I can see all hits the right Pi-hole.
I use two different Upstream DNS just to be sure to separate.
I did nslookup flurry.com 192.168.2.xxx which returned:
Server: pi.hole
Address: 192.168.2.xxx
Name: flurry.com
Addresses: ::
0.0.0.0
So things looks right...(I think)
dig @192.168.2.254 echopad
; <<>> DiG 9.16.44-Raspbian <<>> @192.168.2.254 echopad
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29326
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;echopad. IN A
;; ANSWER SECTION:
echopad. 0 IN A 192.168.2.20
;; Query time: 0 msec
;; SERVER: 192.168.2.254#53(192.168.2.254)
;; WHEN: Fri Jan 05 16:18:17 GMT 2024
;; MSG SIZE rcvd: 52
FTL.log is sort of empty as I did a Flush Logs sorry, will post when logs gets populated again, there are entries from before I did the dig command on each Pi.
@Bucking_Horn
Good morning, P2 is now displaying the hostname in the dashboard.
I changed P2 from Wi-Fi connection to LAN connection. When I set it up I didn't have a spare switch to use.
Old setup
ONT => Edgerouter 4 Eth1 => Switch A => Pi1 + Lan devices
Eth2 => Unifi-U6 => P2 + Wi-Fi devices
New setup
ONT => Edgerouter 4 Eth1 => Switch A => P1 + Lan devices
Eth2 => Switch B => P1 + Unifi U6 + Wi-Fi devices
When checking the FTL.log the log shows for Pi1:
2024-01-05 17:50:48.820 INFO listening on 192.168.1.252 port 53
2024-01-05 17:50:48.820 INFO listening on eth0(#2): 192.168.1.252 port 53
2024-01-05 17:50:48.821 INFO listening on 127.0.0.1 port 53
2024-01-05 17:50:48.821 INFO listening on lo(#1): 127.0.0.1 port 53
2024-01-05 17:50:48.821 INFO listening on fe80::dfde:8e4c:572f:417%eth0 port 53
2024-01-05 17:50:48.821 INFO listening on eth0(#2): fe80::dfde:8e4c:572f:417%eth0 port 53
2024-01-05 17:50:48.821 INFO listening on ::1 port 53
2024-01-05 17:50:48.821 INFO listening on lo(#1): ::1 port 53
2024-01-05 17:50:48.823 INFO PID of FTL process: 3316
2024-01-05 17:50:48.824 INFO FTL is running as user pihole (UID 999)
The FTL.log for Pi2 shows:
2024-01-05 19:03:29.991 INFO listening on 192.168.2.254 port 53
2024-01-05 19:03:29.991 INFO listening on eth0(#2): 192.168.2.254 port 53
2024-01-05 19:03:29.991 INFO listening on 127.0.0.1 port 53
2024-01-05 19:03:29.991 INFO listening on lo(#1): 127.0.0.1 port 53
2024-01-05 19:03:29.991 INFO listening on fe80::604c:a810:7eed:3e39%eth0 port 53
2024-01-05 19:03:29.991 INFO listening on eth0(#2): fe80::604c:a810:7eed:3e39%eth0 port 53
2024-01-05 19:03:29.991 INFO listening on ::1 port 53
2024-01-05 19:03:29.992 INFO listening on lo(#1): ::1 port 53
2024-01-05 19:03:29.994 INFO PID of FTL process: 578
2024-01-05 19:03:29.994 INFO FTL is running as user pihole (UID 999)
Presume this is OK - or?
FTL.log for Pi1 showed the below error message - to be ignored - or?
2024-01-06 07:00:01.816 ERR SQLite3 message: database is locked in "SELECT name FROM network_addresses WHERE name IS NOT NULL AND ip = ?;" (5)
2024-01-06 07:00:01.816 ERR getNameFromIP("192.168.1.213") - SQL error prepare: database is locked
Hi @Bucking_Horn,
For now I say all appears correct.
I have noticed a small issue, but will check better first, before raising any question.
For the HTML, my bad I should have made my question more clear.
It was/is related to how to format postings here in HTML format, I noticed you did something and the post became more easy to read/understand.
Hi,
Sorry my bad I should have been more clear in my question.
It was/is related to how to format the text in my postings in HTML - I didn't do believe it was Bucking_Horn who did.
So how on format the code blocks?
Warm regards - Steen