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

Wildcard DNS records not working #53

Open
negatethis opened this issue Jan 31, 2024 · 5 comments
Open

Wildcard DNS records not working #53

negatethis opened this issue Jan 31, 2024 · 5 comments
Labels
bug Something isn't working filed-upstream Issue comes from a dependency, and we are waiting on a fix upstream

Comments

@negatethis
Copy link

I've setup leng on NixOS through the provided flake.nix with customdnsrecords = [ "*.nixos.container. IN A 192.168.0.76" ]; thinking it would provide the appropriate DNS mappings. However, leng interprets the wildcard literally, so only *.nixos.container gets mapped to 192.168.0.76, not nixos.container and any subdomains.

@cottand
Copy link
Owner

cottand commented Feb 1, 2024

Thank you for your report! What you expect is indeed zonefille syntax as per RFC5492. The lib I use (https://github.com/miekg/dns) claims to be compliant to this RFC so might be a bug on my end. I will investigate and hopefully fix it over the next few days

@cottand
Copy link
Owner

cottand commented Feb 3, 2024

I filed an issue upstream miekg/dns#1534

@cottand cottand added the bug Something isn't working label Feb 3, 2024
@cottand
Copy link
Owner

cottand commented Feb 3, 2024

In the meantime, if you set customdnsrecords = [ "nixos.container. IN A 192.168.0.76" ];

that should get you what you want (but you are still correct that what you posted should work)

@cottand
Copy link
Owner

cottand commented Feb 12, 2024

An update: I have submitted a PR miekg/dns#1536 upstream (which should fix your case)

@negatethis
Copy link
Author

Perfect, thank you for looking into it so quickly! I'll keep an eye out for when that PR gets merged upstreamed and used in leng.

@cottand cottand added the filed-upstream Issue comes from a dependency, and we are waiting on a fix upstream label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working filed-upstream Issue comes from a dependency, and we are waiting on a fix upstream
Projects
None yet
Development

No branches or pull requests

2 participants