# problem with hostname

**URL:** <https://forums.suse.com/t/problem-with-hostname/22217>\
**Category:** SLES Configure-Administer\
**Created:** [February 15, 2012, 10:39pm UTC](https://forums.suse.com/t/problem-with-hostname/22217 "2012-02-15T22:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![albumns](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@albumns](https://forums.suse.com/u/albumns)\
**Post date:** [February 15, 2012, 10:39pm UTC](https://forums.suse.com/t/problem-with-hostname/22217/1 "2012-02-15T22:39:09Z")

</div>

Hello:  
I’ve set my hostname as: ABC and domainname: EDF by YAST  
I found that when I use command ‘hostname’ in terminal, it said:

ABC

But I expect it should be ABC.EDF which also display the domain name…

Does anybody how to do this?

THX

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 15, 2012, 11:28pm UTC](https://forums.suse.com/t/problem-with-hostname/22217/2 "2012-02-15T23:28:19Z")

</div>

> [@albumns](#):
>
> Hello:  
> I’ve set my hostname as: ABC and domainname: EDF by YAST  
> I found that when I use command ‘hostname’ in terminal, it said:
> 
> ABC
> 
> But I expect it should be ABC.EDF which also display the domain  
> name…
> 
> Does anybody how to do this?
> 
> THX

Hi  
Please don’t multi post… I’ve answered in your other thread in  
SLED 😉

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 11 (x86\_64) Kernel 3.0.13-0.19-default  
up 1 day 22:39, 3 users, load average: 0.00, 0.01, 0.05  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
