Local DNS >> CNAME - Unable to remove entries

The issue I am facing:
Local DNS >> CNAME - Unable to remove entries

Details about my system:

  • Pi-hole [v5.2]
  • Web Interface [v5.2]
  • FTL [v5.3.1]

What I have changed since installing Pi-hole:
This is first time adding entries in Local DNS >> CNAME and unable to remove them. Tried clearing browser cache. Tried different browser. Same thing.

I even tried restoring from backup. It wouldn't even clear them.

Does this happen only with some domains (I'm thinking about international letters, etc.) or does it happen with all?

I'm asking because I just tried adding t.de -> tagesschau.de and it worked without any problems. Removing worked equally well.

I think what may have happened is I used https://10.5.12.1:8443/ in the target instead of the actual domain name.

Is there a config file I can manually edit this out?

Can confirm the failure

2020-11-30 21:31:31: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  Executing sudo pihole -a removecustomcname t.de https://10.5.12.1:8443/ failed. in /var/www/html/admin/scripts/pi-hole/php/func.php on line 79

You can manually remove it by editing

/etc/dnsmasq.d/05-pihole-custom-cname.conf

This is a URL, not a domain name or IP.

Yep. Found out the hard way. lol. But it would have been cool if it had some kind of a syntax check before it will accept it.

I perfectly agree. The CNAME editing page was an external contribution and, apparently, we haven't checked it carefully enough to recognize the missing/incorrectly working validation. On the Todo list.

1 Like

2 posts were split to a new topic: CNAMEs not working

https://github.com/pi-hole/AdminLTE/pull/1662

2 Likes

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