H1B Approved in Oct, 2018 and my passport is about to expire in Feb, 2019. Can I renew my passport in India?

I was on F1 - OPT status till now. My H1B got approved in October, 2018 and my Passport is about to expire in Feb, 2019.

I have read that it is recommended to have a passport valid for at least 6 months beyond Interview date.

I am planning to go to India in December, renew the passport in India (currently it has F1 Visa on it), and then go for the H1B Interview. Does this work?or should I renew the passport here in US, then go to India for the Interview?

Better to Renew the passport here in US, That would be better and safe .

Same. Better renew in US.