Sunday 7 April 2013

BT 2-Wire Business Hub handing out wrong IP Address

One of our clients had a hard drive crash that prevented them booting into Windows.  As the machine was pretty old, and running XP, we agreed that it was a good time to upgrade to Windows 8 and snappy new hardware.

Everything went well, we managed to reinstall all of the software on the new machine, and transfer over all of the data.  We even managed to make a VHD image of the old broken hard drive, and copy that onto the new machine.

As the machine was the network server as well as one of the workstations, it seemed the best plan was to keep the machine name the same, so that the new machine could impersonate the old one.

The only problem was that the BT Hub was insisting on handing out the IP address of the old, dead machine (192.168.1.100) instead of the one assigned to the new machine via DHCP.  And there seemed to be no way to get the Hub to forget about the old machine.  Sometimes it returned 127.0.0.1 and others it returned 192.168.1.100, but never it seemed 192.168.1.64

This problem dragged on for a couple of weeks, until finally I noticed the problem.

The BT hub has case sensitive host names.  The old machine was STUDY, and the new machine was study.

When a lookup of a host name was requested, the old machine was first in the table, and a case insensitive comparision returned that, instead of the new lower case machine.  Why the Hub compares as case insensitive but inserts as case sensitive appears to be a bug in the firmware.

The FIX?

Simply rename the machine on the control panel to be the old upper case version.

1and1 changed my .htaccess file!

Over the last few months I’ve had sporadic random changes to the .htaccess files on my website.

I looked again today when I noticed that some of my sites I look after are behaving incorrectly.

The .htaccess file had been changed to this:

AddHandler x-mapp-php6 .php3 .php4 .php .phtml

More to the point, all of my changes were gone.

What caused it?

I have a hunch.  The changes that occurred at various places on my website occured at pretty much exactly the same time as I added an additional domain to my package.

So the moral is, if you’re using 1and1 for hosting, and ever add a domain, they’ll break the rest of your websites.

I haven’t had any useful help from 1and1 on this.  They’re claiming that someone is hacking my site, but the logs don’t show anything, so I think that’s unlikely to be the cause.  My money’s on the hunch at the moment.