Strange error !! some idea?

for some reason resolv.conf after some time change to 127.0.0.1

why?

When that happen al stop .

I edit manually configure resolver correctly.

After taht try restart apache:
[root@ns3 ~]# service httpd restart
Stopping httpd: [ OK ]
Flushing IPC Semaphores [ OK ]
Starting httpd: httpd: Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]

The only way to fix is edit resolv.conf, and then reboot machine!
This happen on my 5 interworx servers, without any reason, one tiem per day or 2 !

Some fix pleass?

  1. 127.0.0.1 is the correct resolver address.
  2. You need an /etc/host entry for your server’s hostname if it’s not dns-able.

I should also add that a reboot isn’t necessary to “fix” dj-grobe :).

Chris

Plase can explain more?

  1. You need an /etc/host entry for your server’s hostname if it’s not dns-able.

I cant understand what you say with that

nano /etc/hosts

And put inside my hostname?

you say make this?

nano /etc/hosts

inside put:

ipofserver hostname

that is?

Supost my ip is 56.89.78.45 and my host name is ns1.micro.com

The correct is resolver configured at 127.0.0.1

and create file /etc/hosts

and put insdide this:

127.0.0.1 ns1.micro.com ns1 localhost.localdomain localhost
216.237.118.202 ns1.micro.com

This si the correct way?

You don’t want ns1.micro.com listed twice. I would remove it from the 127.0.0.1 IP. Also, why did you use 216.237.118.202 when you said your IP is 56.89.78.45? Otherwise, you have the correct idea.

Socheat

Supost my ip is 56.89.78.45 and my host name is ns1.micro.com

The correct is resolver configured at 127.0.0.1 ?

and create file /etc/hosts

and put insdide this:

127.0.0.1 localhost.localdomain localhost
256.89.78.45 ns1.micro.com

This si the correct way?

Except for your IP typo, “256.89.78.45”, yes, that is correct.

Yes bas typo, : )

Thanks for your support.