from the desk of aniketh

code and ideas

Archive for November, 2010

Shorten URLs in strings with bit.ly

without comments

Here is a simple class that shortens the URLs within a string using the bit.ly shortening service. Example is at the bottom of the file.

If you only need to shorten a list of URLs (not within the string), then use the “shorten” function. Bitly api documentation is at http://code.google.com/p/bitly-api/wiki/ApiDocumentation .

Written by aniketh

November 2nd, 2010 at 9:22 am

Posted in Uncategorized

Hiding Hosting Providers Nameservers

without comments

If you need to use custom nameservers that show up when someone does a whois query, then here is what you do:
Get the IP addresses of the nameservers that your host gives you. They may give it in the welcome mail, or via support. You can also get this by using dig

Now set up child name servers with the IP addresses obtained previously. After this is setup it should look like the following :
Setup of child name servers

Once this is done, you can then set up your nameservers to these child name servers. This setup should look like the following :

Written by aniketh

November 2nd, 2010 at 8:59 am

Posted in Uncategorized