mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
wildcard only with dns01 ? how dns01 works ? #306
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @UtechtDustin on GitHub (Mar 14, 2018).
I added *.domain.de to my domains.txt.
After run ./dehydrated -c i get the message that this only works with dns01... but i cant figure out how dns01 works...
I have a debian (8) server... can you explain it me ?
@lukas2511 commented on GitHub (Mar 14, 2018):
Please have a look at the documentation (https://github.com/lukas2511/dehydrated/blob/master/docs/dns-verification.md) and/or search for existing tutorials on the web.
Basically instead of uploading/copying a file to a webserver there are certain DNS entries that have to be set for validation.
@UtechtDustin commented on GitHub (Mar 14, 2018):
@lukas2511
I already searched but i dont understand how i can figure out my dns server and how i can push the stuff to the dns server..
@lukas2511 commented on GitHub (Mar 14, 2018):
@Falseee you'll need to use a hook script and an api provided by your dns provider (if there is any), there are also ways to do this by hand and there are ton of examples and tutorials over in the wiki: https://github.com/lukas2511/dehydrated/wiki/Examples-for-DNS-01-hooks
@txr13 commented on GitHub (Mar 14, 2018):
dns-01 is a method of validating your control of a domain. It requires the use of a hook script.
In order to implement this, you will need to keep a few things in mind:
@UtechtDustin commented on GitHub (Mar 14, 2018):
@lukas2511 @txr13
I think my dns provider has no api, so i want to add it manuell.
Should no problem because i only have ONE domain.
Where i can find a tutorial for manuell dns01 challenge ?
@txr13 commented on GitHub (Mar 14, 2018):
@Falseee I don't know where you can find a tutorial for that, but there are DNS hooks available that can print the required domains on the console (https://github.com/owhen/dns-01-manual), or email them to you (https://github.com/bennettp123/dehydrated-email-notify-hook).
These are both linked from the examples page that Lukas gave you. I have personally implemented both of these hooks for various cases, and they will certainly work... but the details of exactly how they work will depend greatly on your own environment, and that's very likely not something that we can coach you through in this environment.
@LwsBtlr commented on GitHub (Mar 16, 2018):
On 14 Mar 2018, at 15:00, txr13 notifications@github.com wrote:
I can’t simply add the txt records to the DNS entry?
I am overwhelmed by the choices available, and no mention of bind (which I use for DNS).
The issue on reading up on DNS01 is that $4 is a challenge string, but I don’t know where that comes from.
@jobe1986 commented on GitHub (Mar 16, 2018):
For BIND you will need to enable dynamic updates on the zone using allow-update {}; or update-policy {}; and then use the nsupdate method. For a beginner with dynamic DNS in BIND, I'd suggest starting off with allow-update {}; as that method only authenticates based on IP address of the client. However using update-policy {}; is far more secure in the long run.
An example of an allow-update configuration (added INSIDE a zone {} block) which would allow dynamic updates from clients who's IP address is 127.0.0.1:
To use update-policy instead, simply running the command "ddns-confgen" on your command line will give you some basic instructions and generate you a new random key like so:
Note: After enabling dynamic updates for a zone in BIND, you will not be able to simply edit the zone file and run rndc reload to update the DNS anymore. The procedure to do so is either using nsupdate or run "rndc freeze ", edit the zone file, then run "rndc thaw " to reload the updated data
@txr13 commented on GitHub (Mar 16, 2018):
@LwsBtlr You absolutely can edit DNS by hand. Some of the hook scripts are built for that—they tell you what TXT entries to make, and wait for you to do so.
But given a method to make your updates automated (like @jobe1986 has outlined), you should definitely look at it. The whole point of this is to have an Automated Certificate Management Environment, after all. ;)
@LwsBtlr commented on GitHub (Mar 17, 2018):
On 2018-03-16 (02:56 MDT), Matthew Beeching notifications@github.com wrote:
Is there LE-specific documentation on how to do this? update-policy isn't something I've run into before (I am not on dynamic DNS).