Click to See Complete Forum and Search --> : domain name


plasmid
06-01-2001, 09:27 PM
is there a way to tell my linux box what domain it belongs to so that programs like postfix attact the proper domain on outgoing mail (instead of localhost.localdomain).

Thanks

-plasmid

tolstoy
06-01-2001, 09:59 PM
To set your hostname, I think you can just open up a term and type hostname yourhost.yourdomain.whatever.

plasmid
06-01-2001, 10:05 PM
what about the domain name part ( I now have my own domain name that points to my IP)

-plasmid

bdg1983
06-02-2001, 09:23 AM
I would imagine it would be either /etc/HOSTNAME or /etc/hosts. man HOSTNAME (man hostname ??) or man hosts should give you enough information to determine the usage.

I do know that KDE at least on my distro (eDesktop 2.4) has GUI tools for changing/setting your hostname. Check around your systems for similar programs.

Craig McPherson
06-02-2001, 05:58 PM
You should set it in the mail server's configuration file. Some mail servers might default to the system domain name if one isn't specified explicitly, but it's a good idea.