How To Retrive the domain name

Hi All, Happy Holi To All of you.

How can I retrive the domain name demo45.v2solution.com) in script.

Is there any class or method.

or in Formula

Please guide me.

Subject: How To Retrive the domain name

Hi pawan You can use @domain function to retrive domain name .

Hopefully this will solve your purpose

Subject: RE: How To Retrive the domain name

Hi Mitun, Thx for the prompt response. But @domain returns the IP of the server.

But I want the domain like(demo45.v2solutions.com)

I donot want the domain Ip.

Subject: RE: How To Retrive the domain name

You might be right pawan but here i have tested it and it returns me the name not the IP .

Subject: RE: How To Retrive the domain name

Hi Mithun, Thx its working.