| |
Steps to IP Address Change
Friday December 12, @01:25AM, by Daniel Melnechuk
Subject : IP Address Change
from the Tech dept.
Summary :
Here are the steps to the IP address change we performed. It seems to have worked. Some comments about what to do next time for future reference.
Text :
Below are the steps to the IP address change we performed. It seems to have worked.
The only issue was with the "minimum" TTL setting that we had in the SOA records - 1 day. I just read it is a good idea to set the "minimum" setting in the SOA records to very low BEFORE you are going to make a change like an IP address. BUT you must make the change of the minimum TTL setting in the SOA at least the current "minimum" setting amount before you plan to make a change, say like IP address change. Since we did not do that, it is taking a day for the ISP's caching DNS servers to flush their cache. If you do make this change, after you have settled down you can change things back.
The order below of changing the DNS primary files was moved BEFORE changing the IP address secondary servers look at since that should ensure an immediate slurp.
Steps for IP address change (thanks to Mack, Clayton, Alex, and Dan M ):
1. bring up the new IP address on a virtual interface –
ifconfig rl0 inet alias 38.113.6.73
2. change the IP address and the gateway address in rc.conf and add a line
for an alias of the old address:
cp –p /etc/rc.conf /etc/rc.conf.oldip
cp –p /etc/rc.conf.newip /etc/rc.conf
new info in rc.conf:
defaultrouter="38.113.6.1"
ifconfig_rl0="inet 38.113.6.73 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 207.106.87.73 netmask 255.255.255.0"
3) Edit /etc/resolv.conf to add new IP as nameserver
nameserver 38.113.6.73
nameserver 207.106.87.73
4) Change DNS server using the commands
mv /etc/namedb/primary /etc/namedb/primary.oldip
mv /etc/namedb/primary.newip /etc/namedb/primary
killall -SIGHUP named
5) Change zoneedit.com to point to the new IP address - the slave servers there immediately sucked up the new IP addresses since they got a new IP to suck from:
38.113.6.73
6) Wait until new IP address shows up in nslookup on some random computer on net
7) Move apache config and restart (note restart takes two commands to stop and startssl!):
mv /usr/local/etc/apache/httpd.conf /usr/local/etc/apache/httpd.conf.oldip
mv /usr/local/etc/apache/httpd.conf.newip /usr/local/etc/apache/httpd.conf
/usr/local/sbin/apachectl stop
/usr/local/sbin/apachectl startssl
8) Get our ISP to change our real hostname's IP address to the new one. (grp.basespace.net)
9) Reboot
10) Wait one day for things to propagate. Or a few to be sure.
11) Remove the ifconfig_rl0_alias0 line from /etc/rc.conf
12) Remove the old IP alias: "ifconfig -alias 207.106.87.73"
13) Edit /etc/resolv.conf to remove OLD IP as nameserver
nameserver 38.113.6.73
# nameserver 207.106.87.73
Reply
-
Re: Steps to IP Address Change
Saturday December 20, @03:56PM, by Daniel Melnechuk
Step 8.5: Edit file /usr/local/www/horde/imp/config/defaults.php3 to change the var $default->server to the new IP (i tryed changing to "localhost" and it did not work)
Reply
-
Re: Steps to IP Address Change
Tuesday October 17, @05:17AM, by 10.50.0.100
> Here are the steps to the IP address change we performed. It seems to have worked. Some comments about what to do next time for future reference.
> Below are the steps to the IP address change we performed. It seems to have worked.
>
> The only issue was with the "minimum" TTL setting that we had in the SOA records - 1 day. I just read it is a good idea to set the "minimum" setting in the SOA records to very low BEFORE you are going to make a change like an IP address. BUT you must make the change of the minimum TTL setting in the SOA at least the current "minimum" setting amount before you plan to make a change, say like IP address change. Since we did not do that, it is taking a day for the ISP's caching DNS servers to flush their cache. If you do make this change, after you have settled down you can change things back.
>
> The order below of changing the DNS primary files was moved BEFORE changing the IP address secondary servers look at since that should ensure an immediate slurp.
>
> Steps for IP address change (thanks to Mack, Clayton, Alex, and Dan M ):
>
> 1. bring up the new IP address on a virtual interface –
> ifconfig rl0 inet alias 38.113.6.73
>
> 2. change the IP address and the gateway address in rc.conf and add a line
> for an alias of the old address:
>
> cp –p /etc/rc.conf /etc/rc.conf.oldip
> cp –p /etc/rc.conf.newip /etc/rc.conf
>
> new info in rc.conf:
> defaultrouter="38.113.6.1"
> ifconfig_rl0="inet 38.113.6.73 netmask 255.255.255.0"
> ifconfig_rl0_alias0="inet 207.106.87.73 netmask 255.255.255.0"
>
> 3) Edit /etc/resolv.conf to add new IP as nameserver
>
> nameserver 38.113.6.73
> nameserver 207.106.87.73
>
> 4) Change DNS server using the commands
> mv /etc/namedb/primary /etc/namedb/primary.oldip
> mv /etc/namedb/primary.newip /etc/namedb/primary
> killall -SIGHUP named
>
> 5) Change zoneedit.com to point to the new IP address - the slave servers there immediately sucked up the new IP addresses since they got a new IP to suck from:
>
> 38.113.6.73
>
> 6) Wait until new IP address shows up in nslookup on some random computer on net
>
> 7) Move apache config and restart (note restart takes two commands to stop and startssl!):
> mv /usr/local/etc/apache/httpd.conf /usr/local/etc/apache/httpd.conf.oldip
> mv /usr/local/etc/apache/httpd.conf.newip /usr/local/etc/apache/httpd.conf
> /usr/local/sbin/apachectl stop
> /usr/local/sbin/apachectl startssl
>
> 8) Get our ISP to change our real hostname's IP address to the new one. (grp.basespace.net)
>
>
> 9) Reboot
>
> 10) Wait one day for things to propagate. Or a few to be sure.
>
> 11) Remove the ifconfig_rl0_alias0 line from /etc/rc.conf
>
> 12) Remove the old IP alias: "ifconfig -alias 207.106.87.73"
>
> 13) Edit /etc/resolv.conf to remove OLD IP as nameserver
>
> nameserver 38.113.6.73
> # nameserver 207.106.87.73
>
Reply
|