title: Get root domain from request
body: <p>Consider the below URL as an example.
  <a href="http://www.test1.example.com">http://www.test1.example.com</a></p>
  
  <p>Is there any method by which I can get <strong>"example.com"</strong> as an output. I know there is a method <code>servletrequest.getServerName()</code>. It gives me output as <strong>test1.example.com</strong></p>
  
  <p>Any help appreciated.</p>