* [Comm] /usr/bin/host and /etc/hosts @ 2004-11-11 8:12 Maxim.Savrilov 2004-11-11 8:15 ` Genix 2004-11-11 8:26 ` Dmitry Lebkov 0 siblings, 2 replies; 7+ messages in thread From: Maxim.Savrilov @ 2004-11-11 8:12 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 474 bytes --] Здравствуйте! Подскажите, почему host из bind-utils-9.2.2.rel-alt1 не смотрит в /etc/hosts? даже по strace смотрел, не лезет он туда и все На машинке стоит соотвествующий bind кэширующий и с внутренней зоной. в /etc/host.conf стоит order hosts, bind multi on прописываю машины в /etc/hosts - 0 внимания, туда просто программа не лезет Ктовиноват и Чтоделать? -- Из-за неполадок оборудования H-ская АЭС выполнила годовой план за 33 миллисекунды. [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] /usr/bin/host and /etc/hosts 2004-11-11 8:12 [Comm] /usr/bin/host and /etc/hosts Maxim.Savrilov @ 2004-11-11 8:15 ` Genix 2004-11-11 8:49 ` Alexey I. Froloff 2004-11-11 8:26 ` Dmitry Lebkov 1 sibling, 1 reply; 7+ messages in thread From: Genix @ 2004-11-11 8:15 UTC (permalink / raw) To: community On Thu, 11 Nov 2004 11:12:05 +0300 Maxim.Savrilov@socenter.ru wrote: > Подскажите, почему host из bind-utils-9.2.2.rel-alt1 > не смотрит в /etc/hosts? > даже по strace смотрел, не лезет он туда и все > На машинке стоит соотвествующий bind кэширующий и с внутренней зоной. > > в /etc/host.conf стоит > order hosts, bind > multi on > > прописываю машины в /etc/hosts - 0 внимания, туда просто программа не > лезет > > > Ктовиноват и Чтоделать? update_chrooted all делали, после добавления новых хостов? не помогает? -- У каждого в башке свои тараканы... ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] /usr/bin/host and /etc/hosts 2004-11-11 8:15 ` Genix @ 2004-11-11 8:49 ` Alexey I. Froloff 0 siblings, 0 replies; 7+ messages in thread From: Alexey I. Froloff @ 2004-11-11 8:49 UTC (permalink / raw) To: ALT Linux Community [-- Attachment #1: Type: text/plain, Size: 553 bytes --] * Genix <genix@> [041111 11:44]: > > прописываю машины в /etc/hosts - 0 внимания, туда просто программа не > > лезет > > Ктовиноват и Чтоделать? > update_chrooted all делали, после добавления новых хостов? не помогает? update_chrooted conf вполне достаточно. -- Regards, Sir Raorn. ------------------- Поскольку hasher проектировался прежде всего для пересборки большого числа пакетов (полученных из разных источников) по одному разу, использовать его для ускоренной пересборки одного пакета много раз будет непросто. -- ldv in devel@ [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] /usr/bin/host and /etc/hosts 2004-11-11 8:12 [Comm] /usr/bin/host and /etc/hosts Maxim.Savrilov 2004-11-11 8:15 ` Genix @ 2004-11-11 8:26 ` Dmitry Lebkov 2004-11-11 8:43 ` Maxim.Savrilov 1 sibling, 1 reply; 7+ messages in thread From: Dmitry Lebkov @ 2004-11-11 8:26 UTC (permalink / raw) To: community On Thu, 11 Nov 2004 14:12:05 +0600 Maxim.Savrilov@socenter.ru wrote: > Здравствуйте! > > > Подскажите, почему host из bind-utils-9.2.2.rel-alt1 > не смотрит в /etc/hosts? Потому что это утиль из пакета BIND и предназначена для работы только ДНС (это так, на пальцах рассказал %), т.е. использует свою библиотеку работы с ДНС, не завязываясь на стандартные функции типа gethostbyname. > даже по strace смотрел, не лезет он туда и все > На машинке стоит соотвествующий bind кэширующий и с внутренней зоной. > > в /etc/host.conf стоит > order hosts, bind > multi on > > прописываю машины в /etc/hosts - 0 внимания, туда просто программа не лезет > > > Ктовиноват и Чтоделать? Виноватых нет, а "Чтоделать" зависит от того, что хочется получить. -- WBR, Dmitry Lebkov ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] /usr/bin/host and /etc/hosts 2004-11-11 8:26 ` Dmitry Lebkov @ 2004-11-11 8:43 ` Maxim.Savrilov 2004-11-11 11:06 ` [Comm] " Michael Shigorin 2004-11-11 14:56 ` [Comm] " Dmitry Lebkov 0 siblings, 2 replies; 7+ messages in thread From: Maxim.Savrilov @ 2004-11-11 8:43 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 1263 bytes --] Что это за стандартные функции и что это за стандарты, которые стандартный для большинства (имхо) сервер DNS игнорирует? Хочется получить ту же функциональность, что обеспечивал nslookup более старых версий. Захотел, занес в hosts, захотел - в конфиг bind, и все видно. у меня ddns, и если вот так руками в файл зоны залезть, то что-то там рушится, журнал не обновляется, что ли, забыл уже. Короче, табу. а бездисковые клиенты информацию о себе в dns не обновляют, вот и требуется или 1. В hosts прописывать или 2. разобраться с bind+dhcpd или 3. поправить где-то в initrd от ltsp, чтобы он вел себя корректно в этом плане попробовал самое простое, а вона как вышло. On Thu, 11 Nov 2004 18:26:09 +1000 Dmitry Lebkov <dima@sakhalin.ru> wrote: > On Thu, 11 Nov 2004 14:12:05 +0600 > Maxim.Savrilov@socenter.ru wrote: > > > Здравствуйте! > > > > > > Подскажите, почему host из bind-utils-9.2.2.rel-alt1 > > не смотрит в /etc/hosts? > > Потому что это утиль из пакета BIND и предназначена для работы > только ДНС (это так, на пальцах рассказал %), т.е. использует > свою библиотеку работы с ДНС, не завязываясь на стандартные > функции типа gethostbyname. > -- Элементарные действия должны выполняться элементарно. [-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Comm] Re: /usr/bin/host and /etc/hosts 2004-11-11 8:43 ` Maxim.Savrilov @ 2004-11-11 11:06 ` Michael Shigorin 2004-11-11 14:56 ` [Comm] " Dmitry Lebkov 1 sibling, 0 replies; 7+ messages in thread From: Michael Shigorin @ 2004-11-11 11:06 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 422 bytes --] On Thu, Nov 11, 2004 at 02:43:27PM +0600, Maxim.Savrilov@socenter.ru wrote: > 2. разобраться с bind+dhcpd или Дык а чего там разбираться-то? И полезно. Hint: dhcpd умеет раздавать по привязке к MAC IP, взятые из доменных имён, положенных в конфиг, а ведущие собаководы рассказывают ещё про $GENERATE в BIND9. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] /usr/bin/host and /etc/hosts 2004-11-11 8:43 ` Maxim.Savrilov 2004-11-11 11:06 ` [Comm] " Michael Shigorin @ 2004-11-11 14:56 ` Dmitry Lebkov 1 sibling, 0 replies; 7+ messages in thread From: Dmitry Lebkov @ 2004-11-11 14:56 UTC (permalink / raw) To: community On Thu, 11 Nov 2004 14:43:27 +0600 Maxim.Savrilov@socenter.ru wrote: > Что это за стандартные функции и что это за стандарты, > которые стандартный для большинства (имхо) сервер DNS > игнорирует? Для начала - man host. В заголовке английским по белому (а в консоле - по черному) написано: host - DNS lookup utility. Ключевое слово - DNS. Файл /etc/hosts к DNS никакого отношения не имеет. Надо объяснять, почему утилита из дистрибутива DNS-сервера использует свои библиотеки для DNS-запросов, а не libc'шную функцию gethostbyname (см. man 3 gethostbyname) или сами догадаетесь? > Хочется получить ту же функциональность, что обеспечивал nslookup > более старых версий. Решение: написать самому. Или найти исходники старого nslookup'а. > Захотел, занес в hosts, захотел - в конфиг bind, и все видно. > у меня ddns, и если вот так руками в файл зоны залезть, то что-то > там рушится, журнал не обновляется, что ли, забыл уже. Короче, табу. > а бездисковые клиенты информацию о себе в dns не обновляют, вот и > требуется или > 1. В hosts прописывать или > 2. разобраться с bind+dhcpd или Что там разбираться? Внимательного прочтения документации один раз мне хватило для настройки этой связки. > 3. поправить где-то в initrd от ltsp, чтобы он вел себя корректно в > этом плане > > попробовал самое простое, а вона как вышло. Простое - не значит правильное. -- WBR, Dmitry Lebkov > > On Thu, 11 Nov 2004 18:26:09 +1000 > Dmitry Lebkov <dima@sakhalin.ru> wrote: > > > On Thu, 11 Nov 2004 14:12:05 +0600 > > Maxim.Savrilov@socenter.ru wrote: > > > > > Здравствуйте! > > > > > > > > > Подскажите, почему host из bind-utils-9.2.2.rel-alt1 > > > не смотрит в /etc/hosts? > > > > Потому что это утиль из пакета BIND и предназначена для работы > > только ДНС (это так, на пальцах рассказал %), т.е. использует > > свою библиотеку работы с ДНС, не завязываясь на стандартные > > функции типа gethostbyname. > > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-11-11 14:56 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-11-11 8:12 [Comm] /usr/bin/host and /etc/hosts Maxim.Savrilov 2004-11-11 8:15 ` Genix 2004-11-11 8:49 ` Alexey I. Froloff 2004-11-11 8:26 ` Dmitry Lebkov 2004-11-11 8:43 ` Maxim.Savrilov 2004-11-11 11:06 ` [Comm] " Michael Shigorin 2004-11-11 14:56 ` [Comm] " Dmitry Lebkov
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