ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Bratyakin Sergey <sergey@zorya.com.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Postfix in chroot can't resolv client name in ALT Server 4.0.1
Date: Thu, 20 Mar 2008 07:44:48 +0200
Message-ID: <47E1F9D0.3070508@zorya.com.ua> (raw)
In-Reply-To: <47E103EE.7090903@zorya.com.ua>

Bratyakin Sergey пишет:
> Vladimir V. Kamarzin пишет:
>>>>>>> On 19 Mar 2008 at 15:55 "BS" == Bratyakin Sergey writes:
>>
>> BS> Пытаюсь найти в чем проблема.
>> BS> Если прописать в /etc/hosts
>> BS> строку типа 444.333.222.111 super.domain.com
>> BS> затем выполнить update_chrooted conf
>> BS> то имя по IP этому разрешается.
>> BS> Убираю запись - не разрешается
>> BS> То есть получается что запросы именно к dns серверу не идут
>>
>> grep ^hosts /etc/nsswitch.conf /var/spool/postfix/etc/nsswitch.conf
>>
> 
> [root@smtp etc]# grep ^hosts /etc/nsswitch.conf 
> /var/spool/postfix/etc/nsswitch.conf
> /etc/nsswitch.conf:hosts:      files nisplus nis dns
> /var/spool/postfix/etc/nsswitch.conf:hosts:      files nisplus nis dns
> 
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins

Заработало.
Сделал следующее
в /etc/nsswitch.conf
заменил строку
hosts:      files nisplus nis dns
на
hosts:      dns files
Обновил окружение update_chrooted conf
Если прописать так
hosts:      files dns
то перестает определять имена.
Странно.




  reply	other threads:[~2008-03-20  5:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19  5:57 Bratyakin Sergey
2008-03-19  6:16 ` Vladimir V. Kamarzin
2008-03-19  7:05   ` Bratyakin Sergey
2008-03-19  9:14     ` Vladimir V. Kamarzin
2008-03-19 10:02       ` Bratyakin Sergey
2008-03-19  7:14   ` Bratyakin Sergey
2008-03-19 10:07   ` Dmitry V. Levin
2008-03-19 10:21     ` Bratyakin Sergey
2008-03-19 10:26       ` Dmitry V. Levin
2008-03-19 10:55         ` Bratyakin Sergey
2008-03-19 11:28           ` Vladimir V. Kamarzin
2008-03-19 12:15             ` Bratyakin Sergey
2008-03-20  5:44               ` Bratyakin Sergey [this message]
2008-03-20  5:53                 ` Dmitry V. Levin
2008-03-20  6:25                   ` Bratyakin Sergey
2008-03-20  6:32                 ` Peter Evdokimov
2008-03-20  7:24                   ` Bratyakin Sergey

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=47E1F9D0.3070508@zorya.com.ua \
    --to=sergey@zorya.com.ua \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git