函数 $y=2 \tan \left(3 x+\frac{\pi}{6}\right)$ 的定义域是
A. $\left\{x \left\lvert\, x \neq \frac{\pi}{2}+k \pi\right., k \in \mathrm{Z}\right\}$
B. $\left\{x \left\lvert\, x \neq \frac{\pi}{12}+k \pi\right., k \in \mathrm{Z}\right\}$
C. $\left\{x \left\lvert\, x \neq \frac{\pi}{6}+\frac{k \pi}{3}\right., k \in Z\right\}$
D. $\left\{x \left\lvert\, x \neq \frac{\pi}{9}+\frac{k \pi}{3}\right., k \in \mathrm{Z}\right\}$