Quote:
Originally posted by keefaz
You forgot the nat table
Code:
iptables -A PREROUTING -t nat -d 64.233.167.147 -j DNAT --to 192.168.0.11
[edit]
There is also another solution...
Add the IP in your /etc/hosts like:
|
cool it's working
thanks !
for the /etc/hosts.. it's what I used before .. but it<s local only.. so I needed to change hosts file of each computer...
and if I connect my laptop to another network.. (outside of my network) ... I want to use the "true"
www.google.com
another question...
so..
www.google.com will be redirect to 192.168.0.11
because 64.233.167.147=www.google.com
btw..
www.google.com has 3 ip.. and if I do "iptables [..] -d
www.google.com" .. one filter are added for each three ip.. but anyways.. my domain has only one ip
but what happen if
www.google.com become 64.64.64.64
answer.. next time I restart my server.. or iptables script ..if I used "-d
www.google.com" all will be okay ..
but i need to restart my server or my script..
idea ?
ps: it's so funny.. i think i will redirect
www.altavista.com ->
www.google.com for fews days.. and see if my users like it