setup server name in syslog server

Hello ,
Can I put my server name in the remote?

I know I can put an IP address - 91.136.22.7
but when I try to put a name server - myserver.com , it translate it to the IP
so what will happand when the IP will change?
will it change it? Or I need to run a script for it?

why is it?

Thanks ,