Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating CName entry that points to self kills DNS Service #2406

Closed
jessechahal opened this issue Oct 19, 2022 · 3 comments
Closed

Creating CName entry that points to self kills DNS Service #2406

jessechahal opened this issue Oct 19, 2022 · 3 comments

Comments

@jessechahal
Copy link

jessechahal commented Oct 19, 2022

while I was playing around with CName entries in the Web GUI I ended up creating a CName that pointed to itself. Essentially I did something like CName Jesse.Chahal == jesse.chahal. The entry got written to the /etc/dnsmasq.d/05-pihole-custom-cname.conf but made it so the DNS Service could no longer start. I had to manually go into the file to prune to entry so DNS could start back up.

I guess the main issue's are:

  1. the backend should ignore/error case for ascii characters for all DNS entries. Front-end should display appropriate message to the end user if error. --> this is because DNS records are case insensitive (at least for english characters).
  2. You should not be able to create CName records that point back to itself.
@dschaper dschaper transferred this issue from pi-hole/pi-hole Oct 19, 2022
@yubiuser
Copy link
Member

[2022-10-20 06:41:46.574 22783M] FATAL ERROR in dnsmasq core: CNAME loop involving jesse.chahal

@rdwebdesign
Copy link
Member

We can verify the value on the web interface, but the problem also exists when using the command line.

@yubiuser
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants