Or as a slightly more thorough approach, you can use something like namebench or dnsbench:
Another through method will be hyperfine[0], yet I wanted to provide a method which requires no installation and can be done in a whim, without jumps and hoops, with the tools already at hand.