pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how do you run postgres without dns server
4+ messages / 3 participants
[nested] [flat]

* how do you run postgres without dns server
@ 2004-11-10 09:45  Ivan Dimitrov <dobber@bastun.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Ivan Dimitrov @ 2004-11-10 09:45 UTC (permalink / raw)
  To: pgsql-admin

I have a database on a machine that does not know what localhost is. Yes, I 
have 127.0.0.1, but I can't resolve localhost to it. I don't want to start a 
caching dns, and don't want to change resolve.conf. Upon starting, postgres 
gives error cannot bind to localhost. then starts accepting connections to 
127.0.0.1 normaly.
So, why does postgres try to resolve localhost in the first place? Because of 
this error pg_autovacuum does not start.
-- 


Hi! I'm your friendly neighbourhood signature virus.
Copy me to your signature file and help me spread!

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how do you run postgres without dns server
@ 2004-11-10 10:05  Halford Dace <hal@stowe.co.za>
  parent: Ivan Dimitrov <dobber@bastun.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Halford Dace @ 2004-11-10 10:05 UTC (permalink / raw)
  To: Ivan Dimitrov <dobber@bastun.net>; +Cc: pgsql-admin

localhost should be defined in your hosts file, which in most unixoid
environments is /etc/hosts.  It is not an error.

Hal


On Wed, 10 Nov 2004, Ivan Dimitrov wrote:

> I have a database on a machine that does not know what localhost is. Yes, I
> have 127.0.0.1, but I can't resolve localhost to it. I don't want to start a
> caching dns, and don't want to change resolve.conf. Upon starting, postgres
> gives error cannot bind to localhost. then starts accepting connections to
> 127.0.0.1 normaly.
> So, why does postgres try to resolve localhost in the first place? Because of
> this error pg_autovacuum does not start.
> --
>
>
> Hi! I'm your friendly neighbourhood signature virus.
> Copy me to your signature file and help me spread!
>



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how do you run postgres without dns server
@ 2004-11-10 10:15  Ivan Dimitrov <dobber@bastun.net>
  parent: Halford Dace <hal@stowe.co.za>
  0 siblings, 1 reply; 4+ messages in thread

From: Ivan Dimitrov @ 2004-11-10 10:15 UTC (permalink / raw)
  To: pgsql-admin

Yes, it is there
127.0.0.1        localhost
but when i strace postmaster on startup it never looks in /etc/hosts

На 10.11.2004 12:05 вие написахте:
> localhost should be defined in your hosts file, which in most unixoid
> environments is /etc/hosts.  It is not an error.
>
> Hal
>
> On Wed, 10 Nov 2004, Ivan Dimitrov wrote:
> > I have a database on a machine that does not know what localhost is. Yes,
> > I have 127.0.0.1, but I can't resolve localhost to it. I don't want to
> > start a caching dns, and don't want to change resolve.conf. Upon
> > starting, postgres gives error cannot bind to localhost. then starts
> > accepting connections to 127.0.0.1 normaly.
> > So, why does postgres try to resolve localhost in the first place?
> > Because of this error pg_autovacuum does not start.
> > --
> >
> >
> > Hi! I'm your friendly neighbourhood signature virus.
> > Copy me to your signature file and help me spread!

-- 


Hi! I'm your friendly neighbourhood signature virus.
Copy me to your signature file and help me spread!

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: how do you run postgres without dns server
@ 2004-11-10 14:08  Oliver Elphick <olly@lfix.co.uk>
  parent: Ivan Dimitrov <dobber@bastun.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Oliver Elphick @ 2004-11-10 14:08 UTC (permalink / raw)
  To: dobber@bastun.net; +Cc: pgsql-admin

On Wed, 2004-11-10 at 12:15 +0200, Ivan Dimitrov wrote:
> Yes, it is there
> 127.0.0.1        localhost
> but when i strace postmaster on startup it never looks in /etc/hosts

Look at the "hosts:" line in /etc/nsswitch.conf.  It needs to have the
word "files" in there.

-- 
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
     "But thanks be to God, which giveth us the victory 
      through our Lord Jesus Christ."     
                              I Corinthians 15:57 




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2004-11-10 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10 09:45 how do you run postgres without dns server Ivan Dimitrov <dobber@bastun.net>
2004-11-10 10:05 ` Halford Dace <hal@stowe.co.za>
2004-11-10 10:15   ` Ivan Dimitrov <dobber@bastun.net>
2004-11-10 14:08     ` Oliver Elphick <olly@lfix.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox