Sounds like a niacin deficiency. There are tons of threads on this site about that. What type of feed are you giving him - specifically for ducks? - and what is his breed - pekins are particularly prone to leg and feet issues. When a duck starts developing problems you need to go to rescue...