lock a bit earlier to avoid acking packets before they are written
rcat/rmitm: use gethostbyname