Re: /etc/hosts completely ignored

From: Fred Souza (fred_at_storming.org)
Date: 05/28/03

  • Next message: Don Lewis: "Re: policy on GPL'd drivers?"
    Date: Wed, 28 May 2003 14:08:04 -0300
    To: Roberto Nunnari <nunnari@die.supsi.ch>
    
    
    

    [snip]

    > -bash-2.05b# cat /etc/hosts
    > 127.0.0.1 localhost.noonlights.net localhost
    > 192.168.1.5 jupiter.noonlights.net jupiter
    > 192.168.1.5 jupiter.noonlights.net.
    > 193.5.56.6 www.freebsd.org myfreebsd

    [snip]
    > -bash-2.05b# cat /etc/nsswitch.conf
    > hosts: files dns
    >
    >
    > -bash-2.05b# cat /etc/host.conf
    > hosts
    > bind
    >
    >
    > -bash-2.05b# cat /etc/resolv.conf
    > domain noonlights.net
    > nameserver 195.190.166.166
    > nameserver 195.190.166.167
    >
    > -bash-2.05b# host localhost
    > Host not found.
    >
    > -bash-2.05b# host localhost.noonlights.net
    > Host not found.

      I think it's host-related. I have a similar setup muself, although I'm
      currently running 5.1-BETA (sources as of around midnight 28/05/03
      GMT-3). If I try `host localhost`, I get Host not found, too. But if I
      try `host localhost.`, it finds that host fine. Have you tried `host
      localhost.noonlights.net.` or even `host localhost.`? I think it might
      be because host forces the inclusion of its domainname at the end of
      the argument if it's not dot-ended.

      The rest of the output you pasted suggests that I'm right about this,
      and thus it _is_ a host's fault. I agree that we should fix our base
      code, but I support the idea of reporting that to ISC, so they can
      merge the changes to their codebase instead.

      Fred

    -- 
    "idiot box, n:
            The part of the envelope that tells a person where to place
            the stamp when they can't quite figure it out for themselves."
    		-- "Sniglets", Rich Hall & Friends
    
    



  • Next message: Don Lewis: "Re: policy on GPL'd drivers?"

    Relevant Pages

    • Re: How to list the statement of all var ?
      ... > of an object when the question was about `var' statements? ... And as soon as i will test it for this particular host ... to use an Object object instead of an Array object. ...
      (comp.lang.javascript)
    • Re: Why is my IP Address (as shown by FWShow) not what Ive set up in Configure?
      ... >> In the Hosts file, I have 192.168.0.10 for the relevant host name. ... I thought it was a small chance, given that I'm trying to route to the 192 ... StevePotts at blastzone DOT demon STOP co DOT uk ...
      (comp.sys.acorn.networking)
    • Re: latest trends in email spam
      ... without a name, or from a host whose name ... Could be spam, could be clueless user, could be competent user who simply ... I see a lot of legitimate mail which has that. ...
      (comp.os.linux.misc)
    • Re: The Hunt & Humiliate Broke Men Agency
      ... Kumogakure states that illegitimacy implies a host of legal, moral, ... If you hold the two dimensional moral scope of a Western liberal the ...
      (soc.men)
    • Re: cache-only named wont resolve "localhost"
      ... > a zone file on the nameserver, and maps via an A record to 127.0.0.1: ... IN SOA localhost. ... ;Host Address: ... Mozilla apparently doesn't even use my local DNS as it still hangs. ...
      (freebsd-questions)