I'm testing a service-discovery tool, and I'd like to test dns entries that will point to it before I set them up.
Ordinarily I'd do that by:
- adding them to the
hostsfile, - running the
curlcommand, and then - removing them from the
hostsfile.
The thought occurs I should be able to do this inline with curl.
My question is: Is there a curl command to do an inline hosts file replacement for that command?
EDIT: I believe this is not a duplicate of this or this as I'm asking a different question that happens to have the same answer.