diff --git a/client/src/components/Dashboard/BlockedDomains.js b/client/src/components/Dashboard/BlockedDomains.js index 00c9b64e..42288ca8 100644 --- a/client/src/components/Dashboard/BlockedDomains.js +++ b/client/src/components/Dashboard/BlockedDomains.js @@ -57,6 +57,7 @@ const BlockedDomains = ({ showPagination={false} noDataText={t('no_domains_found')} minRows={6} + defaultPageSize={100} className="-striped -highlight card-table-overflow stats__table" /> diff --git a/client/src/components/Dashboard/Clients.js b/client/src/components/Dashboard/Clients.js index 54ca8b7a..ace7ed21 100644 --- a/client/src/components/Dashboard/Clients.js +++ b/client/src/components/Dashboard/Clients.js @@ -72,6 +72,7 @@ const Clients = ({ showPagination={false} noDataText={t('no_clients_found')} minRows={6} + defaultPageSize={100} className="-striped -highlight card-table-overflow" /> diff --git a/client/src/components/Dashboard/QueriedDomains.js b/client/src/components/Dashboard/QueriedDomains.js index 79f77c11..0058ed64 100644 --- a/client/src/components/Dashboard/QueriedDomains.js +++ b/client/src/components/Dashboard/QueriedDomains.js @@ -58,6 +58,7 @@ const QueriedDomains = ({ showPagination={false} noDataText={t('no_domains_found')} minRows={6} + defaultPageSize={100} className="-striped -highlight card-table-overflow stats__table" /> diff --git a/home/dns.go b/home/dns.go index 8e755e06..8db03f49 100644 --- a/home/dns.go +++ b/home/dns.go @@ -75,18 +75,6 @@ func initDNSServer() { config.dnsctx.rdns = InitRDNS(&config.clients) config.dnsctx.whois = initWhois(&config.clients) - const topClientsNumber = 30 // the number of clients to get - topClients := config.stats.GetTopClientsIP(topClientsNumber) - for _, ip := range topClients { - ipAddr := net.ParseIP(ip) - if !ipAddr.IsLoopback() { - config.dnsctx.rdns.Begin(ip) - } - if isPublicIP(ipAddr) { - config.dnsctx.whois.Begin(ip) - } - } - initFiltering() } @@ -242,6 +230,18 @@ func startDNSServer() error { return errorx.Decorate(err, "Couldn't start forwarding DNS server") } + const topClientsNumber = 100 // the number of clients to get + topClients := config.stats.GetTopClientsIP(topClientsNumber) + for _, ip := range topClients { + ipAddr := net.ParseIP(ip) + if !ipAddr.IsLoopback() { + config.dnsctx.rdns.Begin(ip) + } + if isPublicIP(ipAddr) { + config.dnsctx.whois.Begin(ip) + } + } + return nil }