On Jan 21 01:56:43, patrick keshishian wrote:
> On Sat, Jan 21, 2012 at 1:45 AM, Jan Stary <h...@stare.cz> wrote:
> > On Jan 21 10:42:58, Jan Stary wrote:
> >> > On Sat, 21 Jan 2012 09:01:35 +0100, Jan Stary <h...@stare.cz> wrote:
> >> > > On Jan 21 11:40:32, Wesley M. wrote:
> >> > >> When i ping localhost it give me : 208.73.210.29 instead of 127.0.0.1
> !
> >> > >> Where does it come from ? I don't understand.
> >> > >> I use OpenBSD 5.0 with bind patch.
> >> > >
> >> > > Before I burst into howls of derisive laughter:
> >> > > what "bind patch"?
> >>
> >> On Jan 21 12:05:00, Wesley M. wrote:
> >> > see http://www.openbsd.org/errata50.html
> >>
> >> Ah, sorry.
> >>
> >> It *seems* that 208.73.210.29 is your public IP,
> >> bound to the wifi interface you configured, right?
> >> It would help if you also posted your ifconfig.
> >>
> >> From what I can gather from you OP:
> >>
> >> - if both rl0 and iw0 are down,
> >>       'ping localhost' pings 127.0.0.1
> >> - if iwi0 is up (how? dhcp? show ifconfig, netstat, resolv.conf, ...),
> >>       'ping localhost' pings 208.73.210.29
> >> - if rl0 is up (how? dhcp? show ifconfig, netstat, resolv.conf, ...),
> >>       'ping localhost' pings 208.73.210.29
> >>
> >> Is that what you see?
> >>
> >>       Jan
> >
> > Also, your resolv.conf says just
> >
> >        nameserver 192.168.1.1
> >
> > so /etc/hosts doesn't even get consulted, right?
> 
> sure it does.

Please excuse my confusion.

lookup
        This keyword is used by the library routines gethostbyname(3)
        and gethostbyaddr(3).  It specifies which databases should
        be searched, and the order to do so.  The legal space-separated
        values are:

        bind     Use the Domain Name server by querying named(8).
        file     Search for entries in /etc/hosts.
        yp      Talk to the YP system if ypbind(8) is running.

        If the lookup keyword is not used in the system's resolv.conf file
        then the assumed order is bind file.  Furthermore, if the
        system's resolv.conf file does not exist, then the only
        database used is file.


So, in OP's case, where there is no 'lookup' in resolv.conf,
the nameserver 192.168.1.1 is consulted first, right?

So, how does 192.168.1.1 resolve 'localhost'?

Also, how does resolv.conf look like when rl/iwi
is and is not configured? Are thedy dhcp-configured?

Reply via email to