]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Example of DNS record 167/head
authorMaximilian Mitchell <max@maxis.me>
Tue, 15 Mar 2016 00:53:03 +0000 (00:53 +0000)
committerMaximilian Mitchell <max@maxis.me>
Tue, 15 Mar 2016 00:53:03 +0000 (00:53 +0000)
It took me quite a long time to work out the format the DNS record needed to be in. So I have made it crystal clear here.

README.md

index 9c830fec7c59a89fa397ddc5bbfddaf1e5eed53a..3658d4c8acbc1be73dd243f2e1d3dc0633e9f3cc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -103,6 +103,11 @@ The hook script (indicated in the config.sh file or the --hook/-k command line a
 
 Typically, you will need to split the subdomain name in two, the subdomain name and the domain name separately. For example, for "my.example.com", you'll need "my" and "example.com" separately. You then have to prefix "_acme-challenge." before the subdomain name, as in "_acme-challenge.my" and set a TXT record for that on the domain (e.g. "example.com") which has the value supplied in $4
 
+```
+_acme-challenge    IN    TXT    $4
+_acme-challenge.my IN    TXT    $4
+```
+
 That could be done manually (as most providers don't have a DNS API), by having your hook script echo $1, $2 and $4 and then wait (read -s -r -e < /dev/tty) - give it a little time to get into their DNS system. Usually providers give you a boxes to put "_acme-challenge.my" and the token value in, and a dropdown to choose the record type, TXT. 
 
 Or when you do have a DNS API, pass the details accordingly to achieve the same thing.