Why is my domain name setting lost when I reboot my linux system?

  1. Home
  2. Knowledge Base
  3. GMS
  4. Why is my domain name setting lost when I reboot my linux system?

Question

As per KB article 433 I know that GMS requires a domain name to be set via the operating system so that it can send email.

On my linux system, this value is lost when I reboot – what can I do about this?

Answer

We have found that some Linux systems will not retain the “domainname” value following a reboot. If this is the case, then you need to edit the file

/etc/sysctl.conf

and add a line that reads;

kernel.domainname = domain.dom

Where “domain.dom” is your company domain name. This should then set the domain value for you at boot time for any future system restart.

If you are running Suse Linux Version 9 or above you are also able to store the default domain name in the file /etc/defaultdomain for the purpose of carrying it over reboots.

See Also:

Keywords:gethostbyname, domainname, reboot

Was this article helpful?

Related Articles