Zachariah - the other surprised father in the stories of the birth of Jesus - was struck dumb until after his son had been named. Like Joseph, he had to believe that God was at work. It would have been very unusual for a son not to be named after a close male relative. And John was just what his name means - a gift from God.
Once John was named, Zechariah's mouth was opened and he praised God in what's now known as the Benedictus. It is also a blessing on John and his work in preparing the way for Jesus. You can find the words here