I’m not sure how this TID got passed me, but today I found out how to reload DNS settings on a Netware server. Previously you had to bounce the server for these settings to take effect.
From a Netware 5.1+ server console:
Reload the SYS:\ETC\HOSTS file:
WS2_32 RELOADHOSTS
Reload the SYS:\ETC\PROTOCOL file:
WS2_32 RELOAD PROTOCOL
Reload the SYS:\ETC\SERVICES file:
WS2_32 RELOAD SERVICES
Reload the SYS:\ETC\RESOLV.CFG (used to define “domain” and “nameserver” entries for DNS) file:
WS2_32 RELOAD RESOLVE
Reload the SYS:\ETC\NWSWITCH.CONF file:
WS2_32 RELOAD NWSWITCH
The TID also notes:
After processing the command successfully, it will echo the following back to the server console:
SYS:\ETC\RESOLV.CFG file successfully reloaded
So if you do not see the message (or a similar one for other Winsock components), then the command was not successful. One cause for it failing to work is not having a new enough version of WS2_32.NLM to support it. Another cause is that the configuration file for the Winsock component did not exist.