Another way, use @LSERVER value, which will tell you the domain server authenticating the client. Can be something such as:

code:

SELECT
CASE (@LSERVER = "\\PDC")
$localsvr = "PDC"
CASE (@LSERVER = "\\BDC1)
$localsvr = "BDC1
CASE (@LSERVER = "\\BDC2")
$localsvr = "BDC2
ENDSELECT

This especially true if running KiX 3.x, as 'enumipinfo' is only in KiX 4.x.

Bill