Curl: (28) Resolving timed out after 3000 milliseconds

Let’s put it another way, you are the only one who is able to replicate the behavior on Unbound actually.

Can you check how DNS resolution looks like if you check Unbound directly from CLI

dig @127.0.0.1 -p 5335 dietpi.com