Pi-Hole Failed Host Check after added domain/IP combination

Hi everyone. I have setup Pi-Hole with Nginx and diet-pi.

My Pi-Hole IP: 192.168.91.56
My Pi-Hole hostname: monday

I added the doamin/IP combination (monday.lan | 192.168.91.56), accessed to http://monday.lan/admin/login.php and everything seems fine. But after login and direct to http://monday.lan/admin/index.php, it shows:

Failed Host Check: monday.lan vs 192.168.91.56, monday, pi.hole, localhost

I found some posts but being confused. So I am here and call for help. Thank you!

Details about my system:

/etc/nginx/sites-available/default
# /etc/nginx/sites-available/default
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/;
        index index.php index.html index.htm index.nginx-debian.html;

        server_name "$hostname";
        include /etc/nginx/sites-dietpi/*.conf;

        location / {
                try_files $uri $uri/ =404;
        }

        location ~ \.php(?:$|/) {
                include snippets/fastcgi-php.conf;
                fastcgi_pass php;
        }
}

Edited: mistyped words
Edited2: mistyped words

There's a typo in there, it says "monady". Is that you mistyping it here in this forum, or is the typo present in the config and possibly a cause?

1 Like

Yes I mistype it, edited, thanks.

Did the correction of the typo fix the issue? Or was it only a typo here in the forum?

It was only a typo here in the forum.

Hi, did anyone know how to fix? Thanks!

What is the relationship between monday.lan and lingcat.cct.lan? What are these local domains being used for? Why does logging in to Pi-hole using the first domain then change over to the second domain? As a reference, if you log in using the domain pi.hole or the IP address, does that work or does that also exhibit some problem?

lingcat.cct.lan is my another server's domain/IP combination assigned to my monday pi hole. I double checked and I figured out that I mistyped in the post again, maybe I copy&paste the wrong domain when I wrote the post. I edited the post again, sorry.

I have dig out that if you want to make to domain/IP combination works in pi hole w/nginx, the hostname has to be the same as the domain you assign. Just like:

Before:
hostname: monday
domain: monday.lan

After:
hostname: monday.lan
domain: manday.lan

And the issue fixed.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.