Problem with the script to update the "A" DynDNS from he.net

Hey,
I have a problem with DynDNS from He.net. [LINK]
I am trying to use this script, but it works.
So remade link and pasted into the terminal, display a DNS error. Could not locate the dyn.dns.he.net. Added more to DNS static entry. IP dyn.dns.net.pl = 184.105.242.3. Ceased to pay a DNS error. An error has occurred:

Status: failed

failure: closing connection: <connection failed> 184.105.242.3:80 (4)

Link made correct, as in the web browser works.

Please help