I am trying to get the java script we write to resolve server name / port through Net8 instead of hardcoding in the script.

We're using Oracle Names Server w/backup network-based tnsnames.ora.

What steps do I need to take?