hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : changing ip of a domain
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

changing ip of a domain

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2010, 06:39 PM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21

changing ip of a domain


I want to change the ip (outgoing) of a site hosted on my dedicated server. Currently I have changed ip address of the site from WHM though site has become accessible with new ip but outgoing ip is still the same old one which is main ip of the server.

Reply With Quote


Sponsored Links
  #2  
Old 04-28-2010, 06:43 PM
lebnene lebnene is offline
Junior Guru
 
Join Date: Jun 2008
Location: Los Angeles, CA
Posts: 236
what do you mean by outgoing ip? are you referring to the outgoing ip address of the emails?

__________________
www.betteresolution.com
█ Dedicated Servers & More...

Reply With Quote
  #3  
Old 04-28-2010, 06:45 PM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21
outgoing ip means the ip shows up to the different services like yahoo api when accessing from the script hosted from a site.

Reply With Quote
Sponsored Links
  #4  
Old 04-28-2010, 06:53 PM
HostMantis HostMantis is offline
Affordable Web Hosting
 
Join Date: Aug 2009
Location: Metro Detroit Area
Posts: 948
Do you mean the IP a remote server sees? If you changed the IP for the site in WHM, then remote systems should see the updated IP once DNS has propagated.

If you are still seeing the old IP from remote systems, it more than likely just hasn't fully propagated yet. Or the remote system is caching the old IP. Give it some more time to update and check it again.

If this is not what you mean, then I'm really not sure what you are talking about.

__________________
HostMantis Affordable Web Hosting
Shared • Reseller • VPS • Dedicated • 24/7/365 Support • Instant Activation
CloudLinux • Softaculous • RVSitebuilder • FFMpeg • PHP 5.3 • cPanel
Windows Hosting • ASP.NET • ColdFusion • WebMatrix • Plesk

Reply With Quote
  #5  
Old 04-28-2010, 07:24 PM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21
^^ but shouldn't remove servers should see the ip from which request is made?

suppose i access whatismyipaddress.com but it still shows me old ip.

Reply With Quote
  #6  
Old 04-28-2010, 07:30 PM
HostMantis HostMantis is offline
Affordable Web Hosting
 
Join Date: Aug 2009
Location: Metro Detroit Area
Posts: 948
Quote:
Originally Posted by Mong View Post
^^ but shouldn't remove servers should see the ip from which request is made?

suppose i access whatismyipaddress.com but it still shows me old ip.
It should if the remote system is using up-to-date DNS records.

You should give it some more time to update and if the remote system still sees the old IP, then there may be an issue.

__________________
HostMantis Affordable Web Hosting
Shared • Reseller • VPS • Dedicated • 24/7/365 Support • Instant Activation
CloudLinux • Softaculous • RVSitebuilder • FFMpeg • PHP 5.3 • cPanel
Windows Hosting • ASP.NET • ColdFusion • WebMatrix • Plesk

Reply With Quote
  #7  
Old 04-28-2010, 08:10 PM
guru4hosting guru4hosting is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 131
How you are trying to access yahoo api from the server ?

Reply With Quote
  #8  
Old 04-29-2010, 02:59 AM
david510 david510 is offline
Web Hosting Master
 
Join Date: Oct 2004
Location: Kerala, India
Posts: 4,617
Quote:
Originally Posted by Mong View Post
outgoing ip means the ip shows up to the different services like yahoo api when accessing from the script hosted from a site.
If you are using any mail script, it will show the server main IP only, as the mail server IP would still be the server main IP address. We can change the mail server IP to a dedicated IP by configuring the exim.

__________________
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
iWebManager | Access WHM from iPhone and Android

Reply With Quote
  #9  
Old 04-29-2010, 03:50 AM
guru4hosting guru4hosting is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 131
I guess you are trying to access the yahoo API from the server and yahoo server see connections origination from the server main IP, no matter what his domain IP is.

I think you can use iptables NAT rules to override the source ip.

http://netfilter.org/documentation/H...T-HOWTO-6.html

Reply With Quote
  #10  
Old 04-29-2010, 06:17 AM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21
Quote:
Originally Posted by guru4hosting View Post
I guess you are trying to access the yahoo API from the server and yahoo server see connections origination from the server main IP, no matter what his domain IP is.

I think you can use iptables NAT rules to override the source ip.

http://netfilter.org/documentation/H...T-HOWTO-6.html
Exactly! I am facing that problem.

I have checked your link and I think following command would work

## Change source addresses to 1.2.3.4.
# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.2.3.4

But problem is that I want to change source ip of a single domain (site) only while I host couple of more sites on same server. I don't want to change source ip of all of them.

Reply With Quote
  #11  
Old 04-29-2010, 06:42 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,495
Will it be using port 80? If yes, it won't be possible just to route a specific connections to port 80 to another IP.

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #12  
Old 04-29-2010, 06:45 AM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21
Then what's the solution?

Reply With Quote
  #13  
Old 04-29-2010, 07:29 AM
guru4hosting guru4hosting is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 131
you can NAT based on destination ip, that is use specific ip address while connecting to yahoo api server. I guess that would work.

__________________
The Real Hosting Guru

Reply With Quote
  #14  
Old 04-29-2010, 07:57 AM
Mong Mong is offline
Newbie
 
Join Date: Oct 2006
Posts: 21
Quote:
Originally Posted by guru4hosting View Post
you can NAT based on destination ip, that is use specific ip address while connecting to yahoo api server. I guess that would work.
Would you please elaborate a bit?

Reply With Quote
  #15  
Old 04-29-2010, 08:05 AM
guru4hosting guru4hosting is offline
WHT Addict
 
Join Date: Jan 2010
Posts: 131
iptables -t nat -A POSTROUTING -d <replace with yahoo server> -o eth0 -j SNAT --to 1.2.3.4

Can you please try this ?

__________________
The Real Hosting Guru

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
domain changing crzy Hosting Security and Technology Tutorials 1 12-18-2006 03:37 PM
AddOn/Sub Domain to Main Domain changing ChaiDee Dedicated Server 3 04-17-2006 09:07 AM
changing the domain into a new one! bueno Hosting Security and Technology 6 06-03-2004 01:34 AM
changing the domain bueno Hosting Security and Technology 3 03-10-2003 03:03 PM
Changing my domain name....help! StateDOG Web Hosting 6 07-10-2002 04:38 PM

Related posts from TheWhir.com
Title Type Date Posted
Domain Marketplace Sedo Announces Management Changes, New Appointments Web Hosting News 2012-11-07 16:23:38
ICANN Publishes Details on Domain Seizure Process Web Hosting News 2012-03-09 15:38:48
Data Center Firm Switch Communications Sues Canadian Man Over Copyright Infringement Web Hosting News 2011-11-10 18:11:24
.XXX Domain Sunrise Period Opens Wednesday Web Hosting News 2011-09-06 20:50:41
Web Host FlexiHost Launches NZ Domain Lookup and Registration App Web Hosting News 2011-08-31 20:38:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?