<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ftp and traceroute ignoring /etc/hosts file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043756#M543668</link>
    <description>No its probably that traceroute now requires a -i interface or -s source-ip to use as the starting point.&lt;BR /&gt;On your 11.11 box if the first interface it found happened to be the one it wanted then it would work.  On your 11.23 box its probably the other way round.&lt;BR /&gt;man traceroute&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 02 May 2007 05:03:57 GMT</pubDate>
    <dc:creator>Steve Lewis</dc:creator>
    <dc:date>2007-05-02T05:03:57Z</dc:date>
    <item>
      <title>ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043755#M543667</link>
      <description>Ok, this one is really hurting my head!&lt;BR /&gt;&lt;BR /&gt;We have a service defined in DNS called BOB on IP address 10.1.1.1 and also one called BOB on IP address 101.2.2.3 defines in /etc/hosts&lt;BR /&gt;&lt;BR /&gt;In the server /etc/hosts we put the service we want to access - 101.2.2.3 BOB and when we do a ping it goes to the correct IP address, as does a telnet.&lt;BR /&gt;&lt;BR /&gt;However ftp and traceroute both try to connect to the one in DNS ignoring the local hosts file! This is causing a lot of problems for me!&lt;BR /&gt;&lt;BR /&gt;The nsswitch.conf states hosts then dns and an lslookup for bob finds the one we want from local hosts however traceroute bob goes to the address from dns.&lt;BR /&gt;&lt;BR /&gt;Ive applied patch PHNE_34698 but this has had no affect.&lt;BR /&gt;&lt;BR /&gt;Incidentaly this only seems to be a problem at HPUX 11.23 as out 11.11 servers do not have this problem with the same configuration. &lt;BR /&gt;&lt;BR /&gt;Is there something overriding our nsswitch.conf for ftp?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Now we could disable dns to resolve this but we dont want to as several other IP addresses and servioces are in DNS only.</description>
      <pubDate>Wed, 02 May 2007 03:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043755#M543667</guid>
      <dc:creator>Paul Condren</dc:creator>
      <dc:date>2007-05-02T03:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043756#M543668</link>
      <description>No its probably that traceroute now requires a -i interface or -s source-ip to use as the starting point.&lt;BR /&gt;On your 11.11 box if the first interface it found happened to be the one it wanted then it would work.  On your 11.23 box its probably the other way round.&lt;BR /&gt;man traceroute&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 05:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043756#M543668</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2007-05-02T05:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043757#M543669</link>
      <description>&lt;BR /&gt;Perhaps the problem is due to having multiple ip addresses for a single hostname.&lt;BR /&gt;&lt;BR /&gt;The hostname may already be in the arp table (arp -a) and not need to be resolved.&lt;BR /&gt;&lt;BR /&gt;If this is the case nslookup may update the arp table to the "correct" values according to the resolv.conf file, at least temporarily&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 05:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043757#M543669</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2007-05-02T05:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043758#M543670</link>
      <description>The main issue for me is that hosts should always be used befreo looking in DNS and indeed this is the case for a ping or telnet. &lt;BR /&gt;&lt;BR /&gt;Why would ftp be ignoring the hosts entry in favour of a dns entry?&lt;BR /&gt;&lt;BR /&gt;On our 11.11 server it does not happen. Is there an aditional file we need to configure?</description>
      <pubDate>Wed, 02 May 2007 05:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043758#M543670</guid>
      <dc:creator>Paul Condren</dc:creator>
      <dc:date>2007-05-02T05:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043759#M543671</link>
      <description>I dont think there is anything else to configure.&lt;BR /&gt;&lt;BR /&gt;I think the problem may be that you effectively have a duplicate hostname in use.&lt;BR /&gt;&lt;BR /&gt;Can you try and run&lt;BR /&gt;nslookup BOB&lt;BR /&gt;Immediately before you ftp?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 05:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043759#M543671</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2007-05-02T05:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043760#M543672</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;You could try manually deleting the entry from the ARP table before you FTP.&lt;BR /&gt;&lt;BR /&gt;# arp -d BOB&lt;BR /&gt;# ftp BOB&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Wed, 02 May 2007 06:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043760#M543672</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-05-02T06:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043761#M543673</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;Check your ..&lt;BR /&gt;&lt;BR /&gt;nsswitch.conf file, under /etc&lt;BR /&gt;&lt;BR /&gt;look at the line that says hosts!.. it looks as follows&lt;BR /&gt;&lt;BR /&gt;hosts:        files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;Then, when you make a query, the system will be looking up FILES, and if it fails, Trying DNS.&lt;BR /&gt;&lt;BR /&gt;Check for DNS at. :&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;Check the hosts file for the name bob and the ip address, also try to include the fully qualified name right there.:&lt;BR /&gt;/etc/hosts&lt;BR /&gt;&lt;BR /&gt;Also, check if you have something at your &lt;BR /&gt;&lt;BR /&gt;/etc/hosts.allow &lt;BR /&gt;&lt;BR /&gt;and ...&lt;BR /&gt;&lt;BR /&gt;/etc/hosts.deny &lt;BR /&gt;&lt;BR /&gt;Let us know your results,&lt;BR /&gt;&lt;BR /&gt;Marc0</description>
      <pubDate>Wed, 02 May 2007 06:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043761#M543673</guid>
      <dc:creator>Marco A.</dc:creator>
      <dc:date>2007-05-02T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043762#M543674</link>
      <description>If the arp stuff does not solve the issue, can you do a tusc  or trace on ftp process&lt;BR /&gt;&lt;BR /&gt;tusc ftp BOB&lt;BR /&gt;&lt;BR /&gt;Ftp should read nsswitch.conf (any perm issue there)&lt;BR /&gt;&lt;BR /&gt;What is the services entry  (if there is one)in /etc/nsswitch.conf Does it point to dns first&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.</description>
      <pubDate>Wed, 02 May 2007 06:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043762#M543674</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-02T06:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043763#M543675</link>
      <description>OK - Sussed it. The entry was not in the arp list so no action required there.&lt;BR /&gt;&lt;BR /&gt;It seems that 11.23 has an extra item on the list in sam for the nsswitch.conf file which although not specified in the file is still in play (in sam go network &amp;amp; communications -&amp;gt; Name Service Switch). Its called ipnodes which specifies DNS first then /etc/hosts&lt;BR /&gt;&lt;BR /&gt;Its wird as this item does not exist in the sam espot on 11.11, and also because I dont see this line in my /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;However if I edit this in sam to be /etc/hosts fisrts then DNS and apply a line is then written to the end of the nsswitch.conf and now mt ftp to BOB works as hosts files in now used rather than it getting the entry from DNS.&lt;BR /&gt;&lt;BR /&gt;Hoorah!&lt;BR /&gt;&lt;BR /&gt;As stated previously this would only be an issue if you have two services with the same name which is as rare for us an anyone.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 May 2007 08:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043763#M543675</guid>
      <dc:creator>Paul Condren</dc:creator>
      <dc:date>2007-05-02T08:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043764#M543676</link>
      <description>First, ARP is soley and exclusively about mapping IP addresses to MAC addresses.  It has _nothing_ to do with mapping hostnames to IP addresses.&lt;BR /&gt;&lt;BR /&gt;Second, wrt files vs ipnodes, IIRC ipnodes is the one consulted by applications making calls to getaddrinfo().  Getaddrinfo() is the "IPv6 ready" replacement for gethostbyname().  There is also getnameinfo() which is the replacement for gethostbyaddr().&lt;BR /&gt;&lt;BR /&gt;That ping and telnet did what you expected and ftp and traceroute did not could simply be that ping and telnet were still using the gethostbyname() calls and ftp and traceroute were using getaddinfo().&lt;BR /&gt;&lt;BR /&gt;I am not sure what clues one would look for to see in say a tusc trace which was calling which since those are library rather than system calls.  There may be some ldd/nm/odump/whatever magic one can do to see which symbols the main binary seeks.&lt;BR /&gt;&lt;BR /&gt;Frankly, if ftp is calling getaddrinfo() on 11.23, telnet and ping aught to be too - that suggests either a call to the RC is inorder, or you might be missing a patch :)</description>
      <pubDate>Wed, 02 May 2007 19:44:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043764#M543676</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2007-05-02T19:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043765#M543677</link>
      <description>It seems that 11.23 has an extra item on the list in sam for the nsswitch.conf file which although not specified in the file is still in play (in sam go network &amp;amp; communications -&amp;gt; Name Service Switch). Its called ipnodes which specifies DNS first then /etc/hosts&lt;BR /&gt;&lt;BR /&gt;Its wird as this item does not exist in the sam espot on 11.11, and also because I dont see this line in my /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;However if I edit this in sam to be /etc/hosts fisrts then DNS and apply a line is then written to the end of the nsswitch.conf and now mt ftp to BOB works as hosts files in now used rather than it getting the entry from DNS.</description>
      <pubDate>Thu, 03 May 2007 05:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043765#M543677</guid>
      <dc:creator>Paul Condren</dc:creator>
      <dc:date>2007-05-03T05:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: ftp and traceroute ignoring /etc/hosts file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043766#M543678</link>
      <description>11.11 (aka 11iv1) Didn't have "out of the box" IPv6 support, just "enablement" which is probably why things like 11.11 SAM didn't do anything with ipnodes.  ISTR there are some 11.11 patches related to some of that, especially if you install the TOUR wich gives IPv6 support.&lt;BR /&gt;&lt;BR /&gt;Of course, with 11i v3 (11.31) now shipping and 11.23 (11iv2) out there, everyone is upgrading right?-)</description>
      <pubDate>Thu, 03 May 2007 11:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-and-traceroute-ignoring-etc-hosts-file/m-p/5043766#M543678</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2007-05-03T11:39:29Z</dc:date>
    </item>
  </channel>
</rss>

