unbound resolver ready for URL

Felipe Gasper felipe at felipegasper.com
Tue Apr 20 13:51:54 UTC 2021


> On Apr 19, 2021, at 5:31 PM, Modster, Anthony via Unbound-users <unbound-users at lists.nlnetlabs.nl> wrote:
> 
> Hello
>  
> How to determine when “unbound resolver” is ready for a URL to be resolved ?
>  
> Before making URL query requests, I wait for “unbound resolver” to come up.
> The method I used is by detecting the unbound pid file.
> This seems to work most of the time, but not always.

If you’re on a recent Linux you can probably also check systemd to see if unbound is running. There’s a D-Bus interface that should do the job.

-FG


More information about the Unbound-users mailing list