Problem with domain names in firewall/Проблема с внесением доменных имен в firewall

Добрый день, у нашей организации локальная сеть полностью заблокирована, и разрешено только то что указанно в файле firewall.user.
В этом файле сайты прописаны в виде ip адресов.
Есть ли возможность вписать туда доменные адреса?

Находил вариант прописать в начале документа : goodsite="/root/opensite.txt" и потом в файле opensite.txt прописать сайты, но оно не работает

Good afternoon, our organization has a local network completely blocked, and only what is specified in the firewall.user file is allowed.
Sites in this file are registered as ip addresses.
Is it possible to enter domain addresses there?

I found the option to register at the beginning of the document: goodsite = "/ root / opensite.txt" and then register sites in the opensite.txt file, but it does not work

When writing in your native language, please always provide an english translation.
This way other users all around the world can take part in the discussion and possibly benefit from the outcome, without having to use a translator.

When you edit your posting, please translate the topic as well.

The author wants to set up content filter.
He uses firewall-based content filter together with IP-address whitelist, which is ineffective.

Simple DNS-based content filtering:

In the firewall (iptables) only to use IP. However, you migt use a custom DNSMASQ, which only allows certain domain names.

how to do it?