I know that $\lim_{x\to0}\frac{x}{x}=$ 1.
But in my text book, it is written that it is $\infty$ and even $\frac10=\infty$.
But how is it possible? And are they both same? What is the difference between indeterminate and undefined?
And if they are $\infty$ then what is the reason? And why can't we define something for these numbers?

Now see that book says when $x=0$, $t=\infty$. If it is wrong, why did they just write it?
The limit $\displaystyle \lim_{x \rightarrow 0 } \frac{x}{x}=1$, as you said. It is not infinity. Why, because the fraction is simplified to $1$. So no matter where $x$ tends the limit will always be $1$.
As for undefined it means that something is not defined. For example the function $f(x)=\frac{1}{x}$ is not defined at $x_0=0$, that is it is undefined at $x_0=0$.
Indeterminate, on the other hand means other thing. Consider the limit:
$$\lim_{n \rightarrow +\infty} \left(1-\frac{1}{n} \right)^n$$
You can see immediately that it is of the form $1^{\infty}$, which is a very well known indeterminate form. Some could speculate here that this limit would be $1$. No, it is not. It equals $e^{-1}$.
Now, let's take a look at another limit. For example:
$$\lim_{x\rightarrow 1^{+}} \frac{\sqrt{1-x^2}}{1-x^2}$$
Again we see that as $x \rightarrow 1^+$ both the nominator and the denominator are zero. This is an indeterminate form $\frac{0}{0}$. However you can sub $1-x^2 =u$ and change variables. Then $u \rightarrow 0$ and the limit is expressed as:
$$\lim_{x \rightarrow 0^+} \frac{\sqrt{u}}{u}$$
which clearly is $+\infty$.
So, indeterminate form means that you can not estimate the limit right away, that is plug in the value and calculate. Undefined means that something is not defined. So, there terms are not the same.