ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] /usr/bin/host and /etc/hosts
Date: Fri, 12 Nov 2004 00:56:08 +1000
Message-ID: <20041112005608.3685e0ae.dima@sakhalin.ru> (raw)
In-Reply-To: <20041111144327.496cf9c4.Maxim.Savrilov@socenter.ru>

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.
> > 


      parent reply	other threads:[~2004-11-11 14:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-11  8:12 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     ` Dmitry Lebkov [this message]

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=20041112005608.3685e0ae.dima@sakhalin.ru \
    --to=dima@sakhalin.ru \
    --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