Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use Comcast as my ISP and I have a RH 8 server/router. As you all know, Comcast (and other high-speed providers) change their customers IP addresses on occassion. Well, they have done it to me again. It's been so long that I forget which files I have to change to get everything working again (ie. my mailserver, web server, etc.). In other words, the old IP address is still in all the configuration files for DNS, apache, sendmail, etc. Can someone lemme know what files should be changed? Also, and I think more importantly, using the "find" command, can anyone tell me if there is a way to search through all files on an RH machine, looking INSIDE the text of files themselves for certain things? For example, I might want to search every file on the machine and find all files that have "123.456.789.000" in them. Know what I mean? Is there a way to do that? That way, I could find all the files my self. After I get everything changed on my box, I can then let my domain registrar know to point to the new IP address. Thanks! This is pretty important.
first of all u can use grep command instead of find, to find out the occurences of any string in ur files.find searches a file in file system.
so use grep command to find out ur prev ip add's entries in /etc and /var(for named)
about files to be modified:
for sendmail ,u need to change the /etc/mail/sendmail.mc file
in this file u might have initialized DAEMON_PORT_OPTIONS. just change that setting.
and run m4 command with app options
for apache, u need to change httpd.conf. this file may be there in /etc or in /etc/httpd/conf. now if u r using listen command, it should be pointed to ur new IP
for name server, u need to modify the zone files . for forward zones, u just open zone file(generally in /var/named) and modify the corresponding mapping entry. for reverse zone change the definition block name in ur named.conf(generally in /etc or in /etc/named/) it will be like <zone "1.168.192.in-addr.arpa" IN> just change it to reflect ur subnet address.
Thanks a million for the advice! Before you posted that message, I had changed the DNS forward zone files, and the relay-domains file in sendmail. I restarted both services, and my website is now back up. I did not have to change anything in apache, but I will look at what you suggested anyway. As far as sendmail, I still have not started getting e-mail yet. I know the IP address change with Verisign can take up to 72 hours to propegate through the web, but I don't really think that's the problem. I can send mail out, but I am not getting any. You write
Quote:
in this file u might have initialized DAEMON_PORT_OPTIONS. just change that setting.
What will that do, and what does that have to do with my IP address change? I don't understand that one. As far as the DNS reverse zone changes you mention, those should be, and are in fact, correct already. Why would they have changed due to the Comcast IP change? Am I missing something? Thanks a million for the insight!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.