help with name server ..

How can i get the server's name on wich I'm working ... I'm using a GUI application and it's connected to a linux server with a .ini and .pf file ..

does anybody know some code for get this??? I have tried with DB-REMOTE-HOST but it didn't work ...