Having bash display a hostname on the command prompt changes nothing.
The DNS server is going to return that hostname for anyone that queries it with your IP address. It is just a name. How is that different from returning Sora for anyone that does a DNS lookup on your IP address?
If you always want to see Sora, then specify your own PS1 prompt in your shell initialization file.
If you want to dynamically get your System Preferences -> Sharing -> Computer name, you could use this bit of code:
COMPUTERNAME="$(systemsetup -getcomputername)"
COMPUTERNAME="${COMPUTERNAME/Computer Name: /}
PS1="${COMPUTERNAME}> "
Note: Whenever you are on an open network, such as a college campus, coffee shop, community WiFi, etc..., you should keep in mind that anyone could be probing your Mac's open ports. By default the Mac does not open external ports, but as you activate System Preferences -> Sharing features, you will be opening ports. Making sure you have strong passwords can help. Also you could consider enabling the Mac OS X Firewall (System Prefrences -> Security).
But just because some DNS server has a different name for your Mac than what you want, is not a security issue.