[2] He represented Edinburgh in parliament in 1648, and was commissioner for war within the sheriffdom of that city between 1643 and 1648, sat on a commission composed partly of lawyers and partly of laymen, to which the liquidation of the insolvent estates of the Earl of Stirling and Lord Alexander was referred in 1644; on a parliamentary committee of 18 appointed to consider of dangers threatening religion, the covenant, and the monarchy, and how to meet them; on another "close and secret" committee of six empowered to take steps rendered necessary by the presence of garrisons of "malignants and sectaries" in Berwick and Carlisle in March 1648; and on 11 May was appointed one of the "committee of estates" in which supreme power was vested during the adjournment of parliament.
From that date his history is a blank until we find him again a member of the commission for the plantation of kirks in 1661, and also one of the commissioners for raising the sum of £40,000 granted to the king in that year.
[2] In 1663 a statute was passed requiring all public officials to subscribe a declaration, affirming the duty of passive obedience, and renouncing the solemn league and covenant.
Though the time for signature was extended in his case until 8 January 1664, and then for a further period of 18 months, and though he was frequently pressed to reconsider the matter, Dundas steadily refused to sign unless he were permitted to qualify the clause in the declaration abjuring the covenant by the words, "in so far as it led to deeds of actual rebellion".
The compromise was not accepted, but it was notified to him that if he would sign the declaration as it stood the king would permit him to make reservation in private audience.