Their meetings included one at property developer David Henderson's apartment where Mr Banks went to watch the fireworks display.
He said Dotcom arrived as Mr Banks was leaving so they had only a brief conversation.
He was later invited out to dinner at the dotcom mansion, although he could not remember the date or the occasion.
"I enjoyed the occasion. Yes I went and I stayed for a short while, as I do.
"I don't know what we had for dinner, but it was a very pleasant occasion because I'm a car enthusiast and he had a nice collection of cars. I enjoyed looking at those in the garages. I got to speak to him for about five minutes."
Dotcom's application to buy the Coatesville property was refused by ministers.
Mr Banks could not recall whether he had ever provided a written reference for Dotcom, but said he did not normally give character references to people he did not know well.
"To the best of my knowledge I gave him some advice about applying for residency.
"He has been very generous to many charities and good causes, as I understand it, and he was very generous to Auckland City when he volunteered to fund the fireworks display, and did."
Mr Banks said he did not know if Dotcom donated money to his mayoral campaign in 2010, but possibly it was anonymous.
According to media reports, Kim Dotcom gave about $500,000 to put on a fireworks display over Auckland in 2010 for New Year's Eve; donated a significant sum to the Christchurch Earthquake appeal and donated $90,000 to the Starship Foundation.