SRP Client Lease Interval and Key Lease Interval #7955
-
After a Thread commissioning, I'm using SRP to advertize the presence of the Thread device. It is working fine. Is it possible to use them to stop the SRP service after X seconds? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
The lease specifies how long the DNS-SD PTR, SRV, A, AAAA, and TXT records will remain valid. This helps ensure that the service information is no longer discoverable within a reasonable amount of time after the device publishing the information disconnects from the network. The key lease specifies how long the KEY record will remain valid, which allows the device to retain its claim on the name for much longer than the lease interval even when it is disconnected from the network. Note that the SRP registrar can override the lease and key lease values requested by the SRP client. See otSrpServerSetLeaseConfig() to configure the bounds on the SRP registrar. You can find more information about the lease and key lease in draft-ietf-dnssd-srp. |
Beta Was this translation helpful? Give feedback.
-
I'm thinking to another solution: By this way, I don't have to bother anymore with SRP service persistance. |
Beta Was this translation helpful? Give feedback.
The lease specifies how long the DNS-SD PTR, SRV, A, AAAA, and TXT records will remain valid. This helps ensure that the service information is no longer discoverable within a reasonable amount of time after the device publishing the information disconnects from the network.
The key lease specifies how long the KEY record will remain valid, which allows the device to retain its claim on the name for much longer than the lease interval even when it is disconnected from the network.
Note that the SRP registrar can override the lease and key lease values requested by the SRP client. See otSrpServerSetLeaseConfig() to configure the bounds on the SRP registrar.
You can find more information ab…