Possible Duplicate:
Bash prompt on Ubuntu - FQDN (\H) same as hostname (\h)
Is it possible to customize ssh shell prompt to show domain name instead of ip e.g
ubuntu@ip-xx-xxx-xx-xxx:~$
with
ubuntu@dev.mydomain.com:~$
Edit: I do not want to hard code the domain name instead I want to fetch the associated domain name