I’m not sure Node 18 is the culprit here, instead another difference in your environment. I’m assuming you’re running something like Trellis / Local / Docker.
You can resolve wordpress.test
from your host machine, but can the container / VM where bud
is running resolve it correctly too?
Try dig wordpress.test
from inside your container / VM, it should resolve to the same that it does for the host.