Stub routers handle Query packets the following ways:
- Originating Query Packets are not modified in any way, entering active and sending Queries are the same.
- Processing received Query packets, depends on the network that was queried. If the network queried is allowed to be advertised by the receiving router, the router will process the Query normally and send back an appropriate Reply. If the queried network is one that the router knows about but is not allowed to advertise, it will be processed in the usual way but the reply will always indicate infinite distance, regardless of what the Stub router truly knows about the network. Receiving a query for an unknown network will immediately cause the router to Reply with an infinite distance.