The 34-year-old leg-spinner, Australia's greatest Test wicket-taker, claimed the figures in a 16-over spell for the Victorian second XI in Melbourne on Wednesday.
While again admitting he hoped to be picked on February 20 for the Test tour of Sri Lanka, Warne said he was pleased simply to be back in the game.
"As I said before this game, I've got no expectations, I'm not putting any pressure on myself," Warne said after play on Wednesday.
"I'm not desperate or anything like that, I'm just enjoying being back playing. Whatever happens, happens. At the moment it's going okay, I couldn't have asked it to go much better at the moment."
Warne said he would talk to the national selectors and captain Ricky Ponting before reconsidering his One-day International retirement.
Warne had Queensland Academy of Sport captain Adam Dye caught behind for 46 and two overs later trapped Steve Farrell lbw for two on day three of the four-day game at Junction Oval.
After returning to cricket on Tuesday from his ban, Warne had to wait until late Wednesday to bowl again because of rain delays.
"The way the ball came out, I thought I got better and better. I had some good loop and got some good spin, given the condition of the ball and pitch and things like that," said Warne.
"It was quite wet, it wasn't easy to hang on to (the ball)."
Warne's former Test and state team-mate Paul Reiffel was umpiring during the leg-spinner's spell.
Warne also took a catch and made 11 on Tuesday in Victoria's first innings of 379 for five declared, while Queensland were 217 for four at the close on Wednesday in their first innings.
Shane Warne in line for Victorian recall