Archive for November, 2010
Shorten URLs in strings with bit.ly
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 .
Hiding Hosting Providers Nameservers
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 :

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