Inanimate masculine nouns declined by the pattern dub have thegenitive singular ending of either-a or-u. There is no quick rule to tell which noun uses which ending.