LinuxQuestions.org
Help answer threads with 0 replies.
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-27-2004, 10:50 AM   #1
matthewsage
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Changing Domain IP & DNS servers


We have a Redhat 7 Linux server acting as the gateway and firewall for our office network. We recently upgrade our DSL line to a new higher speed, which means we have new static IP addresses and new DNS servers, and a new DSL Modem/Router with a new gateway address. I'm trying to get our server to route email, host the website, and route internet traffic through the new DSL line. I tried editing the following files:

/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth1 (ifcfg-eth0 is for our internal network, and I don't think it needs to change)

I changed the addresses in those files, but it didn't seem to work. Are there some configuration files that I'm missing that I need to change? Anywhere else that might tell the server what it's IP address is and how to route traffic? Any help would be greatly appreciated.

The current server configuration is doing everything we need to do and working great plugged into the old DSL line. It simply doesn't route traffic when switched to the new line.
 
Old 09-27-2004, 11:38 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
make sure about network configuration.
u can check them with followings:
ifconfig
route -n
etc...

and your firewall configuration?? probably your firewall-NAT script is generated for old network configuration. so u will probably have to reconfigure it. and u have an old version of redhat. what does it use for firewalling/NAT ?
i think it has ipchains. check the output of followings.
#rpm -qa |grep ipchains
#rpm -qa |grep iptables
#rpm -qa|grep ipfwadm

if u have iptables, i can help u about it. if it isnt, sorry i dont know others

good luck.
 
Old 09-27-2004, 02:59 PM   #3
matthewsage
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, I got it

Maxut: Thanks for your rapid response. I do have iptables installed, but it turned out to be easier than I thought.

Since everything was already configured correctly, I just used grep to locate all instances of the old domain ip, old DNS ips, and old Gateway ip. I edited all those files, and viola, it worked. I ended up having to edit the following files, if anyone else runs into this problem:

/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network
/etc/sycsonfig/network-scripts/ifcfg-eth1
/etc/portsentry/portsentry.ignore
/etc/rc.d/rc.firewall

Thanks for the response.
 
Old 09-28-2004, 09:42 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
good
thnx for posting the easy solition.
 
  


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
Migrating domain to my own DNS servers... Erik Thorsson Linux - Networking 1 12-18-2004 03:06 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
DNS Servers & IPv6. m_pahlevanzadeh Linux - Networking 0 04-15-2004 02:31 PM
DNS & Top Level Domain JJX Linux - Networking 2 03-28-2004 07:56 AM
DNS & A-Record with my domain name fquinteros Linux - Newbie 1 09-02-2003 01:40 AM

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

All times are GMT -5. The time now is 12:03 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