[Firewall] Possible bug in environment script

Arno van Amersfoort arnova at rocky.eld.leidenuniv.nl
Mon Mar 9 08:09:32 CET 2009


This is only used inside the dyndns-plugin (and I recall the 
traffic-accounting plugin), not the environment file. The reason is that 
some ISPs don't update their DNS as often as they should, resulting in 
out-of-date DynDNS hostname->IP mappings....

a.

Philip A. Prindeville wrote:
> Any chance of making this:
> 
> resolvehost()
> {
>   result="$(gethostbyname "$1" "ns.dyndns.org")"
> 
>   if [ -z "$result" ]; then
>     result="$(gethostbyname "$1")"
>   fi
> 
>   echo "$result"
> }
> 
> 
> 
> be conditional? If you're not using dyndns, then that's a lot of useless
> lookups for nothing.
> 
> It's also a potential security hole, since you're revealing who you look
> up to a 3rd party which you might not have any relationship with.
> 
> -Philip
> 
> 
> _______________________________________________
> Firewall mailing list
> Firewall at rocky.eld.leidenuniv.nl
> http://rocky.eld.leidenuniv.nl/mailman/listinfo/firewall
> Arno's (Linux IPTABLES Firewall) Homepage:
> http://rocky.eld.leidenuniv.nl
> 

-- 
Arno van Amersfoort
E-mail    : arnova at rocky.eld.leidenuniv.nl
Donations are welcome through Paypal!
---------------------------------------------------------------------------
Arno's (Linux IPTABLES Firewall) Homepage:
http://rocky.eld.leidenuniv.nl


More information about the Firewall mailing list