Re: DNS vs /etc/hosts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DNS vs /etc/hosts
Дата
Msg-id 15258.1123303130@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DNS vs /etc/hosts  (Lowell.Hought@faa.gov)
Ответы Re: DNS vs /etc/hosts  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Lowell.Hought@faa.gov writes:
> Your are correct in that 8.0 is doing a AAAA request first.  I am running
> Red Hat version 8.0.  The difference in the way 7.2 and 8.0 resolve the
> host option has to be because of the change from gethostbyname to
> getaddrinfo.  Is there some way I can force my machine to do an A search
> before a AAAA search?

On a recent RH system, "man 5 resolver" suggests that putting "options
inet6" into /etc/resolv.conf is what makes this happen ... if there is
such an entry on your system, try removing it.  RH 8.0 is a good ways
back though, so read the local version of that man page before doing
anything with that config file.

I concur with Michael's previous suggestion that the best answer
is to fix the clearly-broken DNS environment you're dealing with.
It is no longer acceptable for anyone to be running nameservers
that have not heard of IPv6 --- unless it's for a network that
only contains clients that have not heard of IPv6, which yours
evidently is not.  Have a word with your local network admin.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Reid Thompson
Дата:
Сообщение: Re: Insert ImageFile in PostgreSQL
Следующее
От: Brendan Jurd
Дата:
Сообщение: timestamp default values