# YaST: Host- and Domainname

**URL:** <https://forums.suse.com/t/yast-host-and-domainname/33206>\
**Category:** SLES Networking\
**Created:** [November 20, 2018, 1:10pm UTC](https://forums.suse.com/t/yast-host-and-domainname/33206 "2018-11-20T13:10:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [November 20, 2018, 1:10pm UTC](https://forums.suse.com/t/yast-host-and-domainname/33206/1 "2018-11-20T13:10:45Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 20, 2018, 1:10pm UTC](https://forums.suse.com/t/yast-host-and-domainname/33206/2 "2018-11-20T13:10:45Z")

</div>

Hi,

when configure LAN via YaST I been ask for a hostname during the  
configuration of a interface (LAN-Card).

And in the Hostname/DNS-Settings (one level above) I been asked for a  
hostname and a domain name.

Why are there two locations to configure the hostname? And what is the  
background for this double config? And last but not least: Should I  
enter only a hostname or a FQDN in the interface settings?

Bernd

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [November 20, 2018, 2:18pm UTC](https://forums.suse.com/t/yast-host-and-domainname/33206/3 "2018-11-20T14:18:28Z")

</div>

On 11/20/2018 04:10 AM, nntp-user wrote:[color=blue]

> when configure LAN via YaST I been ask for a hostname during the  
> configuration of a interface (LAN-Card).[/color]

Yes, and you can have one configured per device, so potentially multiples  
if you have multiple devices and you choose to have these set; I always  
set this one, along with the other, to the same value, but most of my  
systems have just one network device.  
[color=blue]

> And in the Hostname/DNS-Settings (one level above) I been asked for a  
> hostname and a domain name.
> 
> Why are there two locations to configure the hostname? And what is the  
> background for this double config? And last but not least: Should I enter  
> only a hostname or a FQDN in the interface settings?[/color]

I am not sure why there are two locations, other than to let you have  
different DNS-ish addresses for different devices, so perhaps you can  
setup one as thisbox.backupnetwork.company.tld and the other for  
thisbox.company.tld and have the IP addresses go to the correct interface  
depending on which distinguished name is used.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the  
forum as I do not use the web interface often.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [November 20, 2018, 2:50pm UTC](https://forums.suse.com/t/yast-host-and-domainname/33206/4 "2018-11-20T14:50:16Z")

</div>

Hi Bernd,

[QUOTE=nntp-user;55364]Hi,

when configure LAN via YaST I been ask for a hostname during the  
configuration of a interface (LAN-Card).

And in the Hostname/DNS-Settings (one level above) I been asked for a  
hostname and a domain name.

Why are there two locations to configure the hostname? And what is the  
background for this double config? And last but not least: Should I  
enter only a hostname or a FQDN in the interface settings?

Bernd[/QUOTE]

the “upper-level” configuration (in the tab “Hostname / DNS”) is for the actual _host name_, which is the “system level” name and each host can only have _one_ of these. The per-interface configuration is about the IP-to-name Mapping (not saying “DNS” here on purpose), to properly generate /etc/hosts entries. It’s even mentioned in the Yast help screen (thought not as explicitly for the variant on the DNS config screen) 😉

Regards,  
J
