Legal questions

Who do i need to talk to about legally assigning someone to take care of my daughter if i passed away?

Also who do I talk to about to change my daughter's last name?