Create a secondfdw server (on the primary?), with the new host name. That SERVER definition should be replicated to the Secondary, where you can then use it.
Bcz if I promote can I rollback again.
When you roll back... the altered server definition will also be rolled back.