LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2003, 06:06 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Silly question, but I forgot something!


Hi all,

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.

Chris

PS. In the meantime, I'll start looking!
 
Old 09-08-2003, 12:34 AM   #2
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
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.
 
Old 09-08-2003, 08:22 AM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
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!

Chris
 
Old 09-08-2003, 09:14 AM   #4
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
that entry in the sendmail.mc file tells sendmail what ip to listen on...

if you havent changed the ip then its listening for inbound email on your old ip!

never gonna work..

thats the way i understood ya question. was i right!?

G
 
Old 09-08-2003, 09:28 PM   #5
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
All set, guys. Thanks! What I did took care of it, that's all I needed to do.

Chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
silly question NePt Mandriva 5 02-21-2005 03:31 PM
Silly question huble General 5 02-17-2005 02:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 07:20 AM
silly question Kilahchris Linux - Newbie 5 09-09-2004 10:15 PM
very silly question jayakrishnan Linux - General 12 04-08-2002 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration