Consider the below URL as an example.
<http://www.test1.example.com>

Is there any method by which I can get **"example.com"** as an output. I know there is a method `servletrequest.getServerName()`. It gives me output as **test1.example.com**

Any help appreciated.