While a student Dunning became close to Lloyd Kenyon and John Horne Tooke.
In 1766 Dunning was appointed recorder of Bristol, and on 28 January 1768 he became Solicitor-General in the Duke of Grafton's administration, in the place of Edward Willes, who was raised to the bench [REF].