[solved]Moving server...need to find all hard code IP references

I'm moving my web server to a different datacenter.
OS is CentOS 5.8
Apache 2.2.3
qmail
NcFTPd

Its been 12 years since I relocated a server. Lots of brain cells lost since then...:slight_smile:

I need to identify all the config files that contain the server's IP addresses. Memory has provided these:
Network - /etc/sysconfig/network-scripts/* (duh)
httpd.conf
sshd_config
NcFTPd *.cf files
resolv.conf
named.conf

Q: Does anyone see anything I'm missing and/or is there a way to search all files on the server for the old IP addresses?

TIA for any assistance.

Sean

Update: Nothing like getting some sleep...ran this from the command line and got a list of all config files that contained the ip addresses:

rm -f junk
for FILE in `grep "# config:" /etc/init.d/* | sed "s/^.*# config://"`
do 
if [ -e $FILE ] 
then
echo -n "$FILE " >> junk
grep -c 206.169 $FILE >> junk
fi
done
grep -v 0 junk

This "script"
Scans files in /etc/init.d for the names of configuration files
Checks to see if the config file exists, if yes
Output the file name
grep --count for the number of times the IP is found in the file, writing to a temp file
grep for lines that do not contain a 0 count.
Resulting in...

/etc/dovecot.conf 3
/etc/httpd/conf/httpd.conf 78
/usr/local/etc/ncftpd/general.cf 1
/usr/local/etc/ncftpd/domain.cf 1
/etc/ssh/sshd_config 2

It doesn't find config files that aren't referenced in /etc/init.d, of course, but it did catch a couple I'd missed.