Originally Posted by guru4hosting
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.
Exactly! I am facing that problem.
I have checked your link and I think following command would work
## Change source addresses to 188.8.131.52.
# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 184.108.40.206
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.