Perhaps you could use a CNAME record as follows:
client1.com CNAME client1.test.com. shop.client1.com CNAME client1.test.com.
The point at the end is to tell DNS not to populate your entry with the default domain name.
If you should not use DNS for forwarding, you can also use it, even if possible, by forwarding IPTables. Good in this solution ... you can decide which port will point to which ip ... so you can redirect the web server to your Client's Server, but leave Mail on your server (for example)
Here's how to redirect a port to another host with an external IP address:
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport $port -j LOG --log-prefix="PreRouting $port..:" sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport $port -j DNAT --to $ip:$port sudo iptables -t nat -A POSTROUTING -j MASQUERADE sudo iptables -A FORWARD -p tcp -i eth0 -o eth0 -s $ip --sport $port -j LOG --log-prefix="S Forward $port.." sudo iptables -A FORWARD -p tcp -i eth0 -o eth0 -s $ip --sport $port -j ACCEPT sudo iptables -A FORWARD -p tcp -i eth0 -o eth0 -d $ip --dport $port -j LOG --log-prefix="D Forward $port.." sudo iptables -A FORWARD -p tcp -i eth0 -o eth0 -d $ip --dport $port -j ACCEPT
You also need to add this command to install on the network stack:
sudo sysctl -w net.ipv4.ip_forward=1
This will work in the default DENY IPTables setting.
suther
source share