March 10th in Linux/Unix by pbu .

DNS Attacks – error sending response: host unreachable

I was shocked when i saw the /var/log/messages filled with large number of entries like

“server named[15166]: client [xxxx.xxx]#975: error sending response: host unreachable“.

I was running my own bind DNS server and initially i thought that this has something to do with dos attacks. There were about 100′s of above entries per day originating from few IPs and i was very suspicious about it.

I did check my firewall rules and port 53 was open for both UDP/TCP. So no problem there.

After …

March 10th in Internet, Linux/Unix by pbu .

Important TCP/UDP Port Numbers

TCP/UDP Port Numbers

I have compiled some of the very useful list of port numbers (unofficial) used by server administrators. If you are managing a server under VPS or dedicated, this could be more than helpful. You can also refer to Official Port Number & Assignments from IANA website or even a TCP/UDP ports from wikipedia.

Port 21 –> TCP –> FTP (File Transfer Protocol)
Port 22 –> TCP/UDP –> SSH (ssh,scp copy or sftp)
Port 23 –> TCP/UDP –> Telnet
Port …

March 10th in Games by pbu .

Saints Row 2 in 1440×900 Resolution

Saints Row 2 is much like GTA game and it looks good. The real problem was the game runs in many resolutions and there is no 1440×900 option in display settings. My LCD monitor native resolution was 1440×900 the graphics and the game looked stretched and graphics wasnt good at all.

If you want to play this game under 1440×900 widescreen resolution, download resolution editor tool and you will be able to run this game at any resolution not …

March 9th in Internet by pbu .

How to create a favicon?

Easy way to create a favicon for your Website

Favicon gives a discrete iconic look for your website or blog. The usual size of favicon is 16×16 pixels or 32×32 pixels and give its name to favicon.ico and upload to where your homepage resides.

To create favicon.ico

1. Create a 100×100 pixel PNG image in photoshop with transparency.

2. Upload the image to favicon creator which will automatically convert to icon. You can also use Irfanview software if you want to do it offline. …

March 9th in Linux/Unix by pbu .

Port 443 – Secure HTTP with SSL (https)

What is Port 443?

Port 443 is commonly used for Secure HTTP with SSL. All the https:// requests is forwarded to port 443 and the connection link will be a encrypted one.

To setup https and you need to install SSL certificate (openssl or paid one) with apache and once done you can access your site securely by typing https://yoursite.com or https://ipaddress/

Most ssl certificates are signed by CA (certificate authority) which will show website identity and a padlock symbol will …

March 8th in Wordpress by pbu .

Best WordPress Music Themes for your Music Blog

i have been searching for some music themes for wordpress, quite a while and it appears to be only few of them around and most are hard to find.

Below i have compiled some of the beautiful wordpress themes for music related blogs/websites. I really liked them a lot.

Dance Thru Music

Free
Homepage | Download

Internet Music

Free
Homepage | Download

Streamline

Commercial
Homepage | Download

Music Magazine

Free
Homepage | Download

Gramaphonica

Free
Homepage | Download

Grunge Music

Commercial
Homepage | Download

Tribal

Commercial
Homepage | Download

Celebrity Press

License: Commercial
Homepage | Download

Absynthe

Free
Homepage | …

March 4th in Money & Finance by pbu .

Feb ’09 Paypal withdrawal delayed to Indian banks!

I have seen that many many webmasters have been complaining about their paypal withdrawal not reaching to most of their indian bank accounts.

It appears to be those withdrawals initiated between Feb 19 to Feb 24 are facing the delay.

The issue has been discussed in digitalpoint forums with many many indian webmasters complaining.

Paypal is said to be aware of the issue and have sought 2 weeks so that they can do a trace and locate the exact problem.

I …

March 1st in PHP Scripts by pbu .

PHP script to check server status online/offline

i wrote a simple php script to check whether the website or Ip address is online or offline. All you have to do is specify a website url or ip address and the script will return with ONLINE or OFFLINE. I used php fsockopen() to accomplish this.

/* Usage:
$status = GetServerStatus(‘http://domain.com’,80)
or
$status = GetServerStatus(‘IPAddress’,80)
*/

<?php
function GetServerStatus($site, $port)
{
$status = array("OFFLINE", "ONLINE");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
return $status[0];
} else
{ return $status[1];}
}
?>

If you want to …

February 28th in PHP Scripts by pbu .

PHP – How to get domain name from URL?

i was working on a recent project and suddenly i wanted to extract domain name domain.tld stripping off www or http://

I know that parse_url() is the function that accomplishes most of the task. I have tested this function and if users type with www.domain.com then domain.com is only available with path array variable and not in host array variable whereas with http:// the domain.com comes in host array. This is a tricky problem when parsing url to get domain …

February 27th in Wordpress by pbu .

[Fix] Warning: Cannot modify header information – headers already sent by wp-config.php

i recently made a small change to wp-config.php after download using FTP software and when i was deleting my spam comments this error suddenly was thrown out in my blog..

Warning: Cannot modify header information – headers already sent by (output started at ***/wp-config.php:29) in /home/***/wp-includes/pluggable.php on line 213

I did figure out what the problem was. Here is the FIX:

Open wp-config.php and see if there is any blank lines and white spaces both on top and bottom of file within php …