Howto: Reload Netware DNS and other WINSOCK settings without rebooting the server


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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: