Permanent `--add-host` rules

Is there a way to set permanent host:ip pairs for all build and run commands to avoid --add-host all the time? Found nothing in daemon.json spec.