stdout

Well-Known Member
Apr 10, 2003
189
7
168
Nelspruit, Mpumalanga, South Africa
cPanel Access Level
Root Administrator
Hi guys,
Could someone please tell me the step's I'de need to take in order to simply Modify 2 existing Nameserver IPs - from /etc/nameserverips ?

I would eventually like to automate the process, but if you could please explain to me the steps of modifying Nameserver IPs - manually and to also tell me which files need to be modified - this would go a LONG way!

ie. /etc/nameserverips, these all need to be replaced with the new IPs

Could I simply cycle through /var/named/* /etc/*/ /etc/* with a replace <newip> <oldip> -- *
Basically, my question is: which files needs to be modified?
 
Last edited:

stdout

Well-Known Member
Apr 10, 2003
189
7
168
Nelspruit, Mpumalanga, South Africa
cPanel Access Level
Root Administrator
Re

:eek: Sorry, maybe I didnt make myself clear enough..

A client (reseller) has 2 custom Nameservers, 2 IPs.
i want to be able to replace/update these IPs from within the shell.

ie. replace thisip thatip -- /etc/* /var/named/* /usr/local/apache/conf/httpd.conf

If you know, please tell me the full procedure.
 

Murtaza_t

Well-Known Member
Jan 24, 2005
474
0
166
Earth
cPanel Access Level
Website Owner
There is no way you can change the IPs of Nameservers.. IPs are allocated to Nameservers at the time of registering the NameServers.. so only the registrar of that domain can change them or only if you have access to that domain admin panel.
 

Murtaza_t

Well-Known Member
Jan 24, 2005
474
0
166
Earth
cPanel Access Level
Website Owner
stdout said:
I am Fully aware of this. This was not my question.
ofcourse the users will need to update the Ips at thier registrar, but the IPs would also need to reflect on the system.

Sorry, am I not explaining myself clearly?
If you mean to say that you want to add those IPs on your server then you can add the from WHM . Goto Main >> IP Functions >> Add a New IP Address

I hope that answeres your question..
 

stdout

Well-Known Member
Apr 10, 2003
189
7
168
Nelspruit, Mpumalanga, South Africa
cPanel Access Level
Root Administrator
I want to autoamte this process (im not asknig for a script), I am asking what files are associated.

ie.
/etc/ips
/etc/domainips
/etc/ipaddrpool
/etc/nameserverips

/etc/named.conf
/usr/local/apache/conf/httpd.conf

===

What *other* files need to be modified?
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
stdout said:
what files are associated.
ie.
/etc/ips
/etc/domainips
/etc/ipaddrpool
/etc/nameserverips
/etc/named.conf
/usr/local/apache/conf/httpd.conf
QUOTE]

The files you have mentioned are the only files you need to update with the new IP's. Also if you are changing the nameservers and not just the IP's of the current nameservers, like from ns1.mydomain.com to ns1.mysite.com, you will also have to make the necessary changes in the .db file for that domain. Its in /var/named/