Oh no, things have gone very bad for me

The issue I am facing:
When I start PiHole now I am getting this error:
(See pictures)

So, it says:
DHCP host has multiple names at line 117 of /etc/pihole/dnsmasq.conf

So.....

That file:

There aren't any MULTIPLE NAMES I am can see.

Details about my system:
RasPi BUSTER (Yeah, I know)
V3B+

What I have changed since installing Pi-hole:
I know that buster isn't supported any more.
And shame on me for doing what I am about to say:
I was chasing a GHOST (I made a mistake and went down the wrong road)
While doing things I ran the update command
pihole -u
Surprisingly this time it didn't complain and say that the OS isn't supported, but....
It went through and SUPPOSEDLY updated, though it did tell me to update something else like pihole -g.... I didn't document it.

Typed it and it just fell over.

THE ENTIRE DNS IS DEAD.

LUCKILY I have a backup config and load it. Ok, it is 5 months old, but it isn't something that is changed often.

SAME.

I do NOT want to go to ... BOOKWORM as it doesn't have X11 installed by default and it seems painful.

So, can I install an OLDER version of PiHole?
Or: Is there something I've missed?

For now, I am stuck without my local network and I am accessing the net now in a way I don't like.

Thanks in advance.

The DNS won't run as long as the configuration is invalid.

Is there a reason that line 117 is using hyphens rather than colons in the MAC?

The other thing to check would be that you don't have any of these hosts duplicated in other files in /etc/dnsmasq.d.

Thanks.

I'll look into that.

But that wasn't what I changed.

I am on a whole different network just now and can't easily change things. :frowning:

The "Tweak" I did was NTP DNSMasq stuff - now known to be done by mistake.
So I added a file to the /dnsmasq.d directory as I saw from a different article.

3 lines.

Not to flood anyone/you with logs.

(Edited the line and pihole started.... but....)

First off the files.

FTL.log.txt (6.7 KB)

And...
(It says 6 meg)
And it is... So why am I seeing this?

A cut down version.
1.7 meg rejected now too.

:person_shrugging:

Oh, and.....

This is now what I see.

But this may be because of changes I had to make upstream of PiHole, as that machine was also the DHCP server.

And just now I can't get out of the LAN to the WAN. :frowning:

UPDATE:

Ok, brain kinda let a bit of information out just now.

I went to the Pihole page and saw the "warning" and looked at it and saw the error/message about the "duplicate entry in line 117..."
Enter pihole -d to upload report

Did that, and it just died on me and that's kinda where it all started.

Yeah, some articles online are out of date, and could be how you wound up with duplicate entries.

Don't try to upload your entire log files.

If you can run the sudo pihole -d again, and post just the token it gives you here.

use DietPI on your old Pi3

I can't do that at this point in time as the LAN is still not connected to the WAN.

I am doing this by a not preferred way.

But thanks.

Thanks.

I may look at that idea when I get things working again.

Ok, something else is happening.

Still not working.

I keep getting/seeing this "problem" in the tools/pihole diagnostics part:

But - adding insult to injury - there is a second file mentioned as well.
The temp file.

So I ssh to the machine and sudo nano /etc/pihole/dnsmasq.conf file.
Edit it, change the - for : in said line.

But the program seems STUCK at this point.

I also realise I need to import my "old" settings to get back the block list.

Import and...

I try that and....

Then I'm back to:

Sorry if there is repeats in there.
I feel I am so close.

Ok, so next question: (Should I be this far ahead of myself?)

As importing the "old" file/profile/what ever has the wrongly formatted mac address.....
Can I edit that file before I import it?
That way getting around that problem?

I will try ITMT, but.....

You didn't post a debug token, so we can only guess, but you probably have conflicting settings in your dnsmasq files.

Go to Settings > All settings page, Miscellaneous tab and disable misc.etc_dnsmasq_d.

This will restart Pi-hole without the extra config files.

Please understand the PiHole is on my LOCAL network.

For now, it (the local network) is NOT connected to the internet.

I hope to do it soon as having what I have is of concern to me and also not fun to use.

If I want the internet, I have to unplug and plug into a different ethernet socket.

If I want to local network, I have to do the opposite of the above.

Please understand if I could, I would post the debug thingy.

(Ok, not your problem)

What's going on.

Today I got a ladder and ran some cables to allow me to put the Pihole machine on the internet (not the preferred way)

Put this machine on the same network. Could see it.

Can't ssh into it because I have a public key to log in.

But it now isn't working on the newer network.

So now I have to learn how to get around this problem.

Already tried one link and it didn't work.

To do this I have to rewire the two machines back onto their original networks.

I may have to resort to powering it down and bringing it to the desk and do it directly.
But that too has problems:
The PiHole login password. (On THIS machine)
This forum's log in details. (on THIS machine)

I've started to look at this, but there seems problems as there isn't a user name, only password.
So it would seem I am logging in here via a different way.

Gotta love security when you have a problem and are kind of locked out of the machine.

Right...

After a lot of messing around.

This link?

https://tricorder.pi-hole.net/fDoQwtRB/

Ok thanks and sorry for not reading this sooner.

I've uploaded the log file.

But what you wrote:

Nothing like what I'm seeing.

Though not...... important (?) just now - in respect that I have uploaded the log:
It may be handy for me to learn this TRICK for next time.

Click on the blue "Modified Settings" button. You're only showing the modified settings, you'll see the tabs when that button is a green "All settings"

Your log shows the option is already disabled.

It means the issue in /etc/pihole/dnsmasq.conf file. Apparently you manually changed something directly on this file and broke Pi-hole.

You should never change /etc/pihole/dnsmasq.conf.
The file has a big text explicitly saying:

##################################################################################
#                                                                                #
#                     FILE AUTOMATICALLY POPULATED BY PI-HOLE                    #
#    ANY CHANGES MADE TO THIS FILE WILL BE LOST WHEN THE CONFIGURATION CHANGES   #
#                                                                                #
#            IF YOU WISH TO CHANGE ANY OF THESE VALUES, CHANGE THEM IN           #
#                             /etc/pihole/pihole.toml                            #
#                             and restart pihole-FTL                             #
#                                                                                #
#           ANY OTHER CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE           #
#                       WITHIN /etc/dnsmasq.d/yourname.conf                      #
#    (make sure misc.etc_dnsmasq_d is set to true in /etc/pihole/pihole.toml)    #
#                                                                                #
#                      Last updated: 2025-06-05 16:19:34 -03                     #
#                               by FTL version v6.2                              #
#                                                                                #
##################################################################################

Changing the values on this file won't work. The file will be recreated when FTL is restarted. You need to change the values via web interface or editing /etc/pihole/pihole.toml.

I guess your issue is ManagedSwitch MAC Address was set using dashes instead of colons. Edit the entry using the web interface or editing /etc/pihole/pihole.toml.

1 Like

Yes, ok, it does say "DO NOT EDIT"....

On the other hand when it also says "Problem with /etc/pihole/dnsmasq.conf" and nothing else.

If it said "Problem with /etc/pihole/dnsmasq.coonf. Please edit /etc/pihole/pihole.toml"

But anyway..

I'll edit that and see what happens.

Stand by for update
:wink:

(Not THE answer, but a P.S.)

What about this message:

NTP...

(Sorry, P.P.S)
Ok so once I've edited the pihole.toml file and replaced the - with :.....
And saved....

Restarting..

Tools/system settings/restart DNS --- Yes?

I messed up with remote logins and had to reboot.
(So ignore the previous question. Though confirming how it is done would be handy.)

Rebooted.

Now I'm seeing
interface eth0 does not currently exist
Yeah, there is a link, but to cover all bases.

As the warning says. Likely caused by an interface=NAME option where the interface NAME does not exist. Check if your operating system may have changed from simple (like eth0) to predictable (like enp2s0) interface names. Update your configuration accordingly.

Not as far as I know. I haven't changed any interface names.

https://tricorder.pi-hole.net/Wyk08BDw/

slight update - though in the wrong direction:

Now I'm seeing:

Though I suspect there may be a problem somewhere, as the network PiHole is on has it's own DHCP server, and DNS server.

Digging into the second problem:

Handing out addresses used by known critical infrastructure (like the DHCP server or a relay) is prevented to avoid IP address duplication issues.

This can happen when you have configured a static address assignment for the IP address of your Pi-hole. As this could result in an IP address conflict, Pi-hole offers a different free address from your configured DHCP pool. As this means Pi-hole behaves differently than you configured it to, it issues a warning.

The solution would be to either remove the static reservation for the Pi-hole itself (see ADDRESS in the warning) or simply accept this warning as it should only happen during debug log generation. When this warning appears outside of a running DHCP test, check that your Pi-hole is indeed using a static address.

Ok, I kind of get the meaning, but not all.

PiHole is .23 in my network can if I try to change it (NOT via PiHole) I can't.
The interface GUI is blocked. Don't know if I should be worried or not.
Just mentioning.

So that made it really hard to just move the device (here after called PiHole) to the temporary network, as it had different IP addresses and so PiHole wouldn't work on the new network.

So I had to build an entire Duplicate network so PiHole could be accessed from this machine.

It is given .23 here too.
So it isn't using a different IP address.
What is written kind of implies there is an IP problem.
THOUGH this could be tied in with the interface eth0 does not currently exist problem.
(But if so: why can I see the pages and SSH into it?

This is the network layout (working):

nmap -sP 192.168.17.0/24
Starting Nmap 7.80 ( https://nmap.org ) at 2025-06-07 07:37 AEST
Nmap scan report for EdgeRouter (192.168.17.1)
Host is up (0.0010s latency).
Nmap scan report for NUC (192.168.17.6)
Host is up (0.000087s latency).
Nmap scan report for BedPi (192.168.17.23)
Host is up (0.00063s latency).
Nmap scan report for me-desktop (192.168.17.133)
Host is up (0.00012s latency).
Nmap done: 256 IP addresses (4 hosts up) scanned in 2.36 seconds

And PiHole (AKA BedPi) is on .23

Good-ish news.

I got it working with PiHole in the scheme.

But it isn't filtering DNS and blocking blocked ones.

So I'm nearly there.

One thing which needs to be set is the DNS rule that PiHole sends all DNS requests to 192.168.17.1 ONLY.

That then blocks any DNS requests that are NOT from PiHole.
But I'm not sure if it is (or not) working.