
Let Q=(λ,1,−λ−1)
Direction ratio's of PQ≡(λ−β,1−0,−λ−1−β)
∴PQ is perpendicular to given line, hence
1(λ−β)+0(1)−1(−λ−1−β)=0
⇒(λ−β)+λ+1+β=0
⇒λ=−21
∴PQ=(λ−β)2+12+(−λ−1−β)2=23
⇒(−21−β)2+12+(21−1−β)2=23
⇒β2+41+β+1+β2+41+β=23
⇒2β2+2β=0⇒β=0 or −1