One day, my Godaddy server has problem on DNS. it makes my mail, vncviewer... can not work. 

My mail function, Vncviewer did not work. After i checked, I found my "ip" still works. So, I guess the problem is on DNS.

This is my system: 
Host: GoDaddy
Dedicatted Server
Cent OS 6
with xwindow "Gnome"

After things happened, I made a phone call to Godaddy, but their customer service did not know anything. Even their "techinial suppport" still cound not solve it.

So, I start to use Google.......... and I found this article
https://www.centos.org/forums/viewtopic.php?t=8647
"If you really want to set /etc/resolv.conf directly and you want to make sure NetworkManager won't overwrite it, you can set it up in /etc/NetworkManager/NetworkManager.conf......."


For Goddy server, /etc/resolv.conf should be looks like that:

# Generated by NetworkManager
search everybbs.com

nameserver 208.109.96.1
nameserver 208.109.96.2
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.comresolv.conf

Please note:
nameserver 208.109.96.1 
nameserver 208.109.96.2 
these two lines are Godaddy speciall setting. without it, DNS not works.
Because "NetworkManager" will overitten value of "resolv.con" when the server reboots, it makes DNS do not work.

To preventresolv.conf  be overwritten by NetworkManager when we reboot, we need to edit /etc/NetworkManager/NetworkManager.conf , add a line dns=none 

normal Server (none Godaddy) should be like following:
[main]
dns=none

GoDaddy Server is a little different, in my case, it should be writed like following:
[main]
plugins=ifcfg-rh
dns=none
gateway.php
 

then, restart Apache
Or ou can reboot, and check /etc/resolv.conf 
This file should not be overwritten.



PS: GoDaddy hosting servie sucks, they have too many special setting, that makes thinks difficult. Besides, their technical support even don't know how to solve it ....... If I have more money, I will not use Godaddy.

arrow
arrow
    全站熱搜

    Chung 發表在 痞客邦 留言(0) 人氣()