[Dnsmasq-discuss] forwarding-loop mitigation.

Jan 'RedBully' Seiffert redbully at cc.hs-owl.de
Wed Feb 17 12:32:01 GMT 2010


Simon Kelley schrieb:
> Alberto's query got me thinking: If dnsmasq were to read the value of 
> the IP hop-count on incoming queries, and decrement it when forwarding, 
> loops would be squashed in the same way as IP layer-three forwarding.
> 
> Can anyone see a problem with this?
> 

If i'm not mistaken, IP hop-count is always "reset" since the packet reached its
destination (it is received) even if you or the other end "forwards the query"(
you do so on a higher protocol level, DNS).
And DNS has no Hop Count AFAIKS.

But maybe i don't get it...
This means you AND the remote and have to fudge with low level IP protocol stuff.
If the other end of the loop does not do the same thing, you gained nothing?

Nearby: getting to that info (the HopCount on reception) is ... ugly. But since
you already have to deal with IP_PKTINFO, IP_RECVHOPLIMIT is only an additional
pain.
But this also means you also have to set the hop count on send.

> Simon.
> 

Greetings
	Jan

-- 
/home
sweet
/home



More information about the Dnsmasq-discuss mailing list