The best way is to extend the drainage pipe TO the appliance rather than trying to extend the drain hose FROM the appliance.
Using this method, the drain pump of the appliance won't be over worked, also if you are extending the supply pipework it is a good idea to make sure you can access the...