it give's me back a error messege.like
iptables v1.xxx: host/network
www.hi.com.np not found
try iptables -h
now i have this type of configuration
my mail server ip is 202.79.55.xx. This ip holds web service and mail serevice of my company.
the dns is something like this
$TTL 86400
@ IN SOA mail.hi.com.np. admin.hi.com.np. (
2005011801 ; Serial
1800 ; Refresh
14400 ; Retry
14000 ; Expire
14000 ) ; Minimum
IN NS ns.hi.com.np.
IN MX 10 mail.hi.com.np.
IN A 202.79.55.xx
;localcal host entry
localhost IN A 127.0.0.1
; other entries
pop IN A 202.79.55.xx
smtp IN A 202.79.55.xx
ns IN A 202.79.55.xx
mail IN A 202.79.55.xx
IN MX 1 mail
ftp IN A 202.79.55.xx
www IN A 202.51.74.xx
now in the above www IN A 202.79.55.xx. This is a remote public ip of my branch office.in the branch office MASQUERADING is done.Now i went to the branch office and hit the following command
#IPTABLES -A PREROUTING -t nat -i eth0 -p tcp -d
www.hello.com --dport 80 -j DNAT --to 192.168.0.2:80
now over here eth0 is my wan interface with the ip 202.51.74.xx.
192.168.0.2 is my local machine where i want to host my web stuffs. But This dnat is not working.May be my configuration is wrong?