LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem with dns/name server in whm (https://www.linuxquestions.org/questions/linux-server-73/problem-with-dns-name-server-in-whm-613833/)

centosfan 01-15-2008 06:27 PM

Problem with dns/name server in whm
 
For some reason,i added wrong ip adress during installation and setuping name server for ns2 of domain.So i changed now to proper ip adress,which is number next after ip adress of ns1.
But even i changed ip adress of ns2 on domain register,and then i added it on network setup/hostnames,it seems dns server of server is still screwed.I see that by checking server over dnschecker,and also when i go to add an a entry in basic cpanel/whm setup i see this:
Found your nameserver to be: ns2.domain.com
Found your domain name to be: domain.com
Found your nameserver name to be: ns2
Found your nameserver ip to be: 66.249.137.21
If this looks correct,
Add an a entry
As you can see,it shows old ip adress which is wrong instead proper server adress which should be.How do i fix that?

unSpawn 01-16-2008 06:16 AM

W/o using a panel, maybe SSH to the machine, su to root, then 'grep -r' /etc for the IP address to see what configs it's still in and edit those by hand?

centosfan 01-16-2008 07:47 AM

I typed grep -r /etc and i dont see anything

unSpawn 01-16-2008 01:16 PM

I mean like
Quote:

Originally Posted by unSpawn (Post 3024362)
'grep -r' /etc for the IP address


centosfan 01-16-2008 03:09 PM

Quote:

Originally Posted by unSpawn (Post 3024839)
I mean like

grep: 66.249.137.21: No such file or directory

unSpawn 01-16-2008 05:46 PM

Quote:

No such file or directory
Looks more like a failure in your commandline to me. Or maybe I did read your OP wrong. Are you trying to say you're messing with DNS records?

JimBass 01-16-2008 06:44 PM

Seeing your other thread, I think the problem is not on your machine, but with the registrar. The way the root servers find your DNS servers is through your registrar pointing to them. You registered 2 addresses, one for ns1 and the other for ns2. If those addresses are wrong or change, you have to change them in 2 places. 1st on your machine, but more importantly so the public DNS system finds the changes, you need to change the addresses with your registrar.

Peace,
JimBass

centosfan 01-16-2008 06:49 PM

I think register(godaddy)is ok since when i go to basic whm/cpanel and click on add an a entry i see that old adress.Nowhere else i see it,only on that function.

centosfan 01-22-2008 01:49 AM

Resolved,i was simply need to edit db file of affected domain and that's it.


All times are GMT -5. The time now is 10:49 AM.