Short-time DNS queries forecasting from the users’ and servers’ points of view, using deep learning and a pre-trained word embedding
DOI:
https://doi.org/10.19153/cleiej.25.2.6Keywords:
DNS, Word Embeddings, fastText, Recursive Neural Networks, Language Models, Natural Language ProcessingAbstract
Word embeddings are used in natural language processing to group semantically similar
words. In this paper, we create word embeddings for Internet Domain Names (DNS)
from corpora of anonymized DNS queries from an Internet Service Provider. We use each
embedding as a layer of a recurrent neural network (RNN) that works as a Language
Model for the DNS queries generated by the users. We use these RNNs to predict the
next DNS query in two different cases. A first case tries to predict the next domain query
from the DNS server’s point of view so the corpus is close to the original log data. A
second case tries to predict the next domain queried by a user from the user’s point of
view. Here the corpus has larger preprocessing.
We show that this procedure has good accuracy for the DNS server-side problem, but
low accuracy for the user-side problem. Moreover, we show that training the same RNN
without using the pre-trained embedding takes more time and is substantially less accu-
rate. These results have practical applications for the service’s latency reduction, cache
optimization in recursive DNS servers, automatic filtering of inappropriate domains, and
detecting anomalies.
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Merlino Jorge, Pablo Rodríguez-Bocca

This work is licensed under a Creative Commons Attribution 4.0 International License.
CLEIej is supported by its home institution, CLEI, and by the contribution of the Latin American and international researchers community, and it does not apply any author charges whatsoever for submitting and publishing. Since its creation in 1998, all contents are made publicly accesibly. The current license being applied is a (CC)-BY license (effective October 2015; between 2011 and 2015 a (CC)-BY-NC license was used).