Thanks for those. The ping was just to confirm that the laptop is online via the hotspot, which you've mentioned is your only means of connectivity.
The second command just asks your default DNS server to look up the special domain pi.hole
, which is a special pretend domain that only your Pi-hole is able to resolve. As you can see it was Google's 8.8.8.8
server which answered instead, which is why it said it couldn't find pi.hole
. That means that your laptop isn't using Pi-hole for DNS, it's using Google. That seems to be the problem.
The third command is the same again except this time it specifically asks your Pi-hole to answer. As you can see, it does answer, which shows Pi-hole is available and works when it's used. Your debug log shows it working too when it's being used.
It may be that something changed on your hotspot and it is no longer telling clients to use your Pi-hole. But it may alternatively be that your hotsopt hasn't changed at all and your laptop's config has changed and is now using Google's DNS. For example some new software or an update might do something like that.
There is some other networking going on in your debug file so perhaps it's down to how the person set it up. Sounds a good idea to contact the person and see if they can advise. Tell them that your laptop has stopped using Pi-hole for DNS and is now using Google.
if you want to take a look yourself in the meantime, on your laptop, which you said is running Ubuntu, do you have a wifi settings page, probably linked from the wifi icon somewhere on the desktop? From that you will be able to drill down into the IPv4 settings and see if the DNS is configured as 8.8.8.8
manually. If so, you can override it with the IP address of your Pi-hole which is 192.168.160.24
.
Save that and then run the first nslookup
test again and this time your Pi-hole should answer without needing to be specifically asked. If so then you should be back to normal and you'll see your laptop appearing in your Pi-hole Query Log once again.
Edit – I just remembered that Pi-hole is also running from this same laptop. I don't think that should change anything, but it might be better to defer to the person who set it up in case they've done it in a particular way, as I wouldn't want to break it.