Solved -- Errors with afraid-dyndns in Goddard (Fedora 13)

2010-05-06 2 min read Fedora Learning Linux

Since I updated to the <a class="zem_slink freebase/en/fedora" title="Fedora" rel="homepage" href="http://fedoraproject.org/">Fedora 13, I was getting error from the <a class="zem_slink freebase/en/dynamic_dns" title="Dynamic DNS" rel="wikipedia" href="http://en.wikipedia.org/wiki/Dynamic_DNS">Dynamic DNS client for afraid. I was not getting enough time to fix this, so finally I decided to fix this in the night itself 🙂

Problem:
On running

afraid-dyndns

I was getting the error:

Entity: line 100: <a class="zem_slink freebase/en/parsing" title="Parsing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Parsing">parser error : Opening and ending tag mismatch: br line 99 and div

^
Entity: line 118: parser error : Entity &#8217;copy&#8217; not defined
© 2010 DomainTools, <a class="zem_slink freebase/en/limited_liability_company" title="Limited liability company" rel="wikipedia" href="http://en.wikipedia.org/wiki/Limited_liability_company">LLC All <a class="zem_slink freebase/en/intellectual_property" title="Intellectual property" rel="wikipedia" href="http://en.wikipedia.org/wiki/Intellectual_property">rights reserved.
^
Entity: line 121: parser error : AttValue: &#8221; or &#8217; expected
/link/?id=4668&#8217;;} return(true);&#8221;><img src="/images/domaining-120x31.gif" border="^" alt="" /><img src="/images/domaining-120x31.gif" border="</p" alt="" />

So here is the solution :

On further investigation I found that the issue was not with the afraid server but with getting the external IP. So I decided to use my own site to get the IP. And changed the following in the afraid-dyndns file:

Comment out the following code:

#$xml = get(&#8221;http://ip-address.domaintools.com/myip.xml&#8221;);
#die &#8221;Failed fetching <a class="zem_slink freebase/en/ip_address" title="IP address" rel="wikipedia" href="http://en.wikipedia.org/wiki/IP_address">IP address!&#8221; unless $xml;
#echo (&#8221;Got IP:&#8221;. $xml);

#$o = XMLin($xml);
#$extip = $o->{proxy_ip}; # external address

And add the following line just below the just commented lines:

$extip = get(&#8221;http://amit-agarwal.co.in/mystuff/getip_txt.php&#8221;);
$extip =~ s/\n//;

This change be sufficient to get you going again.. 🙂<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/03/23/unbound-variable-bash-completion-not-working-and-having-issues-with-other-stuff-like-command-not-found/">unbound variable – bash completion not working and having issues with other stuff like command not found. (amit-agarwal.co.in) <li class="zemanta-article-ul-li"><a href="http://www.makeuseof.com/tag/connect-home-network-dyndns/">Connect To Your Home Network From Anywhere With DynDNS (makeuseof.com) <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/04/12/mappings-tex-file-vim-plugins/">Get the mappings from tex file for vim plugins (amit-agarwal.co.in) <li class="zemanta-article-ul-li"><a href="http://askowen.info/2010/04/what-is-my-ip-address/">What is my IP address? (askowen.info) <li class="zemanta-article-ul-li"><a href="http://blog.amit-agarwal.co.in/2010/04/11/bash-script-change-vim-colorscheme-based-themes/">bash script to change vim colorscheme based on the available themes (amit-agarwal.co.in) <div class="zemanta-pixie"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/29064ed0-3b0c-4700-b250-52b41c7aa2af/"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_b81.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

comments powered by Disqus