My old code for parsing DNS packets in python