private static void cache(AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop) { // Cache NS record if not for a root server as we should never cache for root servers. if (!server.isRootServer()) { cache.cache(server.domainName, server.address, server.ttl, loop); } }
/** * Add an authoritative nameserver to the cache if its not a root server. */ private void addNameServerToCache( AuthoritativeNameServer name, InetAddress resolved, long ttl) { if (!name.isRootServer()) { // Cache NS record if not for a root server as we should never cache for root servers. parent.authoritativeDnsServerCache().cache(name.domainName(), additionals, resolved, ttl, parent.ch.eventLoop()); } }
private static void cache(AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop) { // Cache NS record if not for a root server as we should never cache for root servers. if (!server.isRootServer()) { cache.cache(server.domainName, server.address, server.ttl, loop); } }
private static void cache(AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop) { // Cache NS record if not for a root server as we should never cache for root servers. if (!server.isRootServer()) { cache.cache(server.domainName, server.address, server.ttl, loop); } }