title: Is it possible to use computer name in iptables
body: <p>I want to redirect some port from WAN to my laptop. The problem is, that the laptop has different IP on wireless as on cable LAN. Is there a way to use the computer name in iptables?</p>
  
  <p>Iptables port forwarding rule (using IPs) should be:</p>
  
  <pre><code>iptables -t nat -A PREROUTING -p tcp -d 192.168.102.37 --dport 422 -j DNAT --to 192.168.102.37:22
  </code></pre>
  
  <p>Can I write something like</p>
  
  <pre><code>iptables -t nat -A PREROUTING -p tcp -d mycomputername --dport 422 -j DNAT --to mycomputername:22
  </code></pre>
  
  <p>and the computer name will be resolved in current IP?</p>
  
  <p>Thank you.</p>