Hi
Just try the url
http://www.directnic.com/whois/index.php?query=axisbank.co.in
its giving the result as "Sorry, but our WHOIS does not support the top level domain name"
The site you are using do not support .co.in domain type.
So, you need to search for API, which support major domain types.
There is no error in code