unable to resolve host, after iptables masquerade
by lordki from LinuxQuestions.org on (#5E51B)
Greatings,
I have been working with this problem too time...
Im redirecting all my conextions to diferent interface with iptables.
sudo iptables -t nat -A PREROUTING -p tcp -m tcp ! --dport 22 -j DNAT --to-destination 10.0.3.15
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
Im been working fine, but when im make this rules to iptables, appears this error. i cant do nothing.
unable to resolve host enrique-VirtualBox: Name or service not know.
My /etc/hosts:
127.0.0.1 localhost
127.0.1.1 enrique-VirtualBox


I have been working with this problem too time...
Im redirecting all my conextions to diferent interface with iptables.
sudo iptables -t nat -A PREROUTING -p tcp -m tcp ! --dport 22 -j DNAT --to-destination 10.0.3.15
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
Im been working fine, but when im make this rules to iptables, appears this error. i cant do nothing.
unable to resolve host enrique-VirtualBox: Name or service not know.
My /etc/hosts:
127.0.0.1 localhost
127.0.1.1 enrique-VirtualBox