Before use run command below: Create new chain $ iptables -t nat -N dnsmap Enable chain $ iptables -t nat -A PREROUTING -d %REMAP_SUBNET% -j dnsmap