From: georginus <georginus@galaktika.by> To: Alexander Kuprin <community@altlinux.ru> Subject: Re[2]: [Comm] /etc/hosts Date: Wed, 12 May 2004 16:09:10 +0300 Message-ID: <30867427.20040512160910@galaktika.by> (raw) In-Reply-To: <200405121420.51135.ru_classic@gts.lg.ua> Hello Alexander, AK> В таком случае, Вам необходимо выяснить у администратора сети ip-адрес AK> DNS-сервера, его имя (желательно) и имя домена (не путать с доменом Windows). AK> Информация об этом в Linux хранится в трёх файлах: AK> /etc/resolv.conf AK> /etc/hosts AK> /etc/host.conf AK> В качестве примера приведу свои настройки. Конечно у меня не 200 машин, а AK> всего две (это домашняя сеть), но смысл от этого не меняется. Я создал домен AK> home. В нём расположены два компьютера, p3 и p4. Полные имена p3.home и AK> p4.home соответственно. p3 выполняет роль DNS сервера и шлюза в Интернет. Вот AK> конфигурационные файлы с другого компьютера, p4: AK> /etc/hosts: AK> 127.0.0.1 localhost.localdomain localhost AK> 192.168.0.1 p4.home p3 AK> 192.168.0.2 p4.home p4 AK> В /etc/hosts я прописал ip-адрес DNS-сервера (192.168.0.1), чтобы ускорить AK> обращение к нему, хотя можно было этого и не делать. AK> /etc/resolv.conf: AK> search home AK> nameserver 192.168.0.1 AK> Опция search позволяет обращаться к узлам локальной сети, используя короткие AK> имена, p3, p4 и т.д. Она, при использовании коротких имён (или псевдонимов), AK> добавляет имя домена (в моём случае home) и тем самым формирует полное имя AK> узла. nameserver указывает на ip-адрес DNS-сервера. Максимум может быть три AK> записи, указывающие на DNS-сервера, обращение к которым идёт по порядку -- AK> если первый не отвечает, пытаемся обратиться ко второму и т.д. AK> /etc/host.conf: AK> order hosts,bind AK> multi on AK> Здесь для Вас интересна первая строка -- она описывает в каком порядке AK> требуется выполнять поиск при преобразовании ip-адреса в имя и наоборот. AK> hosts указывает, что искать необходимо в /etc/hosts, bind -- указывает на AK> обращение к DNS-серверу. Порядок поиска определяется порядком расположения AK> ключей в order. Если требуется быстрый доступ к определённым узлам, то можно AK> прописать информацию о них в /etc/hosts. AK> Гм... Конец лекции. :) попытался настроить систему в соответствие с Вашими инструкциями, пока не очень получается :) по-прежнему хосты не пингуются по имени, пингуются только те, имена которых в /etc/hosts указаны. буду читать рекоммендованную Вами литературу и добиваться положительного результата. большое спасибо за подробный инструктаж :) -- Best regards, georginus mailto:georginus@galaktika.by
next prev parent reply other threads:[~2004-05-12 13:09 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-05-12 8:23 georginus 2004-05-12 8:59 ` Alexander Kuprin 2004-05-12 10:11 ` Re[2]: " georginus 2004-05-12 10:48 ` Alexander Kuprin 2004-05-12 10:55 ` Re[2]: " georginus 2004-05-12 10:44 ` Nizamov Shavkat 2004-05-12 11:20 ` Alexander Kuprin 2004-05-12 13:09 ` georginus [this message] 2004-05-12 13:47 ` Re[2]: " georginus 2004-05-12 14:34 ` Alexander Kuprin 2004-05-12 10:00 ` Alexey Borovskoy 2004-05-12 10:56 ` Wadik Eunap 2004-05-13 10:23 ` [Comm] /etc/hosts Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=30867427.20040512160910@galaktika.by \ --to=georginus@galaktika.by \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git