HOstname - LInux - postfix

Guillermo Garron guillermo.fedora at gmail.com
Sun Nov 26 19:58:28 UTC 2006


On 11/26/06, Matthew Saltzman <mjs at ces.clemson.edu> wrote:
> On Sun, 26 Nov 2006, Guillermo Garron wrote:
>
> > On 11/25/06, Maillist-Norm <maillist at sios.ca> wrote:
> >> Guillermo Garron wrote:
> >> > Hi,
> >> >
> >> > I have this problem
> >> >
> >> > my email server's DNS name is
> >> >
> >> > ns1.mydomain.com, and it is registered in the reverse DNS also with
> >> > that name, when i installed my server at the hostname i entered
> >> >
> >> > centos-server.mydomain.com
> >> >
> >> > when i tried to send an email from the root console with
> >> >
> >> > # mail root
> >> >
> >> > the email is returned saying that
> >> >
> >> > root at centos-server.mydomain.com, could not be verified
> >> >
> >> > i used the command
> >> > # hostname ns1.mydomain.com
> >> > and also edited the file.
> >> >
> >> > /etc/hosts,
> >> > but i have the same result, the hostname did not change, i even
> >> > restart my server with no luck.
> >> >
> >> > what am I missing?
> >> >
> >> > regards,
> >> >
> >> > Guillermo.
> >> >
> >> >
> >> The only way I have been able to get a name change to stick is to boot
> >> into level 3 and edit  etc/sysconfig/network.
> >> Norm
> > Thanks Norm,
> >
> > this really worked!
>
> The same effect can be had by changing the hostname in the DNS tab of
> system-config-network.  Contents of /etc/hosts can be edited from the
> Hosts tab.
I did that, but it only really worked when i made what Norm said.

seems like /etc/sysconfig/network can only be changed by editing it by
hand, I had to restart the server in order to have the changes
applied.

Guillermo.




More information about the users mailing list