[LARTC] shaping domain names(www.xyz.com)

Michael Renzmann lartc@nospam.otaku42.de
Fri, 07 May 2004 15:37:45 +0200


Hi.

jayesh rathod wrote:
> Is there any way by which we can shape domain name(not by IP address)
> Eg : suppose i want to shape tarrif to a particular domain www.xyz.com
 > which has multiple ips and i am not aware of there ips

You could achieve this by using different firewall marks for the 
different traffic classes, and shape upon that marks. IIRC there is an 
iptables-extension available that allows to match strings, so you could 
try to match "Host: <domain>" in order to distinguish the different 
domains. But I have no idea if this would work in real world, nor what 
performance impact that may have.

Bye, Mike