1. A method, implemented using a computing system, for managing network traffic, the method comprising: receiving a request from a requestor, the request including a domain name and resource record type; looking up, using the computing system, an initial traffic management rule in at least one table, using the domain name and resource record type as a search key, wherein the initial traffic management rule specifies a first variable that affects the initial traffic management rule; iterating, based on the initial traffic management rule, until an answer to the request is found, wherein the iterating comprises: determining, using the computing system, a value for another variable specified in a successive traffic management rule obtained from the at least one table; and looking up, using the computing system, in the at least one table the answer or another successive traffic management rule using the domain name and the value for the another variable of the successive traffic management rule as a search key; and providing the answer to the requestor.