Как включить разрешение имен хостов в Debian? [закрыто]

Есть программы, которые уже сделают это за вас, например grc, это

универсальный раскрасчик, который можно использовать для раскрашивания лог-файлов, вывод команд, произвольный текст.... настраивается через регулярные выражения.

enter image description here

[Обычно я не люблю использовать изображение текста, но я не думаю, что в StackExchange есть варианты цветового форматирования]

Или есть также source-highlight .

См. Существует ли утилита colorizer, которая может принимать выходные данные команды и раскрашивать их в соответствии с предварительно определенной схемой? и для SuperUser

0
06.12.2018, 21:46
1 ответ

Нет, шлюз — это маршрутизатор. Вы захотите указать серверы имен. Например:

nameserver 209.244.0.3
nameserver 209.244.0.4

Или любые серверы имен, которые вы хотите использовать. Ваш хостинг-провайдер, вероятно, имеет серверы имен очень, очень близко к вашему серверу. Это может быть лучшим вариантом, и вы должны спросить у них IP-адреса их серверов имен для вашего использования. Или используйте поисковую систему, чтобы найти общедоступные серверы имен. Мои хосты очень близки к уровню 3, поэтому я использую серверы имен уровня 3, как указано выше.

Другим хорошим вариантом является вариант searchили domain. Из руководства(man resolv.conf):

domain Local domain name. Most queries for names within this domain can use short names relative to the local domain. If set to '.', the root domain is considered. If no domain entry is present, the domain is determined from the local hostname returned by gethostname(2); the domain part is taken to be everything after the first '.'. Finally, if the hostname does not contain a domain part, the root domain is assumed.

search Search list for host-name lookup. The search list is normally determined from the local domain name; by default, it contains only the local domain name. This may be changed by listing the desired domain search path following the search keyword with spaces or tabs separating the names. Resolver queries having fewer than ndots dots (default is 1) in them will be attempted using each component of the search path in turn until a match is found. For environments with multiple subdomains please read options ndots:n below to avoid man-in- the-middle attacks and unnecessary traffic for the root-dns-servers. Note that this process may be slow and will generate a lot of network traffic if the servers for the listed domains are not local, and that queries will time out if no server is available for one of the domains.

The search list is currently limited to six domains with a total of 256 characters.

domain your-domain-name.com
nameserver 209.244.0.3
nameserver 209.244.0.4
3
28.01.2020, 02:23

Теги

Похожие вопросы