Nslookup is going to DNS server, and then returning the DNS record. in your case svr09.coas.gov.ae
Hostname is returning information set locally to your machine.
Is this a Linux server you are working on? Setting the hostname depends on version of Linux.
Well nslookup looks at the DNS hostname looks at the local host file as well