"I made an error of judgment betting on Astern when I rode it and broke a rule of racing," McDonald said.
"But I am extremely disappointed with the penalty and I will be appealing."
McDonald avoided the mandatory two-year disqualification after stewards determined there were special circumstances including the guilty plea, his remorse and his record.
"I will be back riding, and hopefully sooner rather than later," McDonald said.
"It is not appropriate that I say anything else until the appeal is over."
The ban is backdated to when McDonald stood himself down on November 15 after being charged and expires on May 15, 2018.
During the inquiry McDonald's lawyer Matthew Stirling pushed for a two to three month ban, arguing McDonald had co-operated fully and that the offence was at the low end of the scale because he had ridden Astern.
"In New Zealand where James grew up, a jockey can bet on his mount and it regularly happens," Stirling said.
Stirling said it was inevitable young jockeys would be befriended by players in the industry including punters.
"There is no doubt that Gardiner manipulated the relationship," Stirling said.
Gardiner, who has been warned off NSW racetracks after not responding to stewards' requests to be interviewed over the matter, profited in excess of $125,000 from bets on Astern from the race.
The inquiry heard Gardiner stood to win more than $400,000 from a combination of pre-post and multi bets on Astern to win the Golden Slipper which were placed before the colt's debut.
Stewards had previously warned McDonald about his association with Gardiner before the Tramway Stakes on September 3.
The inquiry heard Gardiner had backed Dibayani who was competing against McDonald's mount Hauraki in the Group Two race at Randwick.
Stewards saw McDonald and Gardiner acknowledging each other in the mounting yard and as the horses went on to the track.
Chief steward Marc Van Gestel spoke to McDonald behind the barriers, warning him he would be watched closely during the race which was won by Hauraki.
McDonald has won 34 Group One races and two Sydney jockeys' premierships and is widely considered to be one of the best jockeys in Australia.
As a result of the ruling McDonald has lost one of the most sought after riding jobs in world racing as Godolphin's retained jockey in Australia.
"Godolphin agrees that there must be zero tolerance of any breaches of the prohibition on betting by a jockey," the global breeding and racing powerhouse said in a statement.
"Godolphin has advised James McDonald that, as he is disqualified, he will be released from his current contract with immediate effect. This decision has been accepted by James.
"We will continue to support him throughout his suspension. His long term future with Godolphin will be reviewed in due course by His Highness Sheikh Mohammed."
-NZ Racing Desk