ws2_32: gethostbyname("") should work.
[wine] / dlls / spoolss /
drwxr-xr-x   ..
-rw-r--r-- 319 Makefile.in
-rw-r--r-- 4117 spoolss.spec
-rw-r--r-- 3616 spoolss_main.c