<?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: dns client in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703358#M902409</link>
    <description>Hi Animesh,&lt;BR /&gt;You need either search or domain line but not both.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
    <pubDate>Mon, 15 Apr 2002 16:29:10 GMT</pubDate>
    <dc:creator>Sachin Patel</dc:creator>
    <dc:date>2002-04-15T16:29:10Z</dc:date>
    <item>
      <title>dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703352#M902403</link>
      <description>Hi,&lt;BR /&gt;I have configured DNS client.&lt;BR /&gt;edited /etc/resolve.conf and /etc/nsswitch.conf&lt;BR /&gt;When I do nslookup it works fine but after that swlist complains that "Could not contact host." &lt;BR /&gt;my /etc/resolve.conf looks like this:&lt;BR /&gt;#####################&lt;BR /&gt;domain hostA.xyz.abc.net&lt;BR /&gt;search xyz.abc.net&lt;BR /&gt;nameserver xxx.xx.xx.xx&lt;BR /&gt;nameserver xxx.xx.xx.xy&lt;BR /&gt;############################&lt;BR /&gt;If I remove resolve.conf ,swlist works fine&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestions&lt;BR /&gt;Animesh&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 08:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703352#M902403</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-04-15T08:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703353#M902404</link>
      <description>Hi Animesh,&lt;BR /&gt;&lt;BR /&gt;I believe your domain in your /etc/resolv.conf should be xyz.abc.net instead of hostA.xyz.abc.net.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 08:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703353#M902404</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-15T08:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703354#M902405</link>
      <description>Hi Steven,&lt;BR /&gt;Thanks but it does not help :(</description>
      <pubDate>Mon, 15 Apr 2002 09:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703354#M902405</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-04-15T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703355#M902406</link>
      <description>Hi Animesh,&lt;BR /&gt;&lt;BR /&gt;Modify your /etc/nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts: files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;Also, try restarting your swagentd:&lt;BR /&gt;&lt;BR /&gt;# swagentd -r&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 15 Apr 2002 09:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703355#M902406</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-15T09:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703356#M902407</link>
      <description>Hi Animesh,&lt;BR /&gt;I think your order in resolv.conf file for name server lookup is not proper.&lt;BR /&gt;&lt;BR /&gt;Please do following .&lt;BR /&gt;nslookup to your host and see if dns ruturns anything?&lt;BR /&gt;&lt;BR /&gt;May be your hostname entry is not in DNS database. Please update DNS database and ten try to do swlist. &lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;You do not need to do anything with nsswitch.conf becasue if you put the hosts entry first , it will not look for DNS unless yur host finds nothing in /etc/hosts....&lt;BR /&gt;&lt;BR /&gt;I am sure your hostname entry is not in DNS or else DNS order you need to change in your resolv.conf file.&lt;BR /&gt;&lt;BR /&gt;-pap</description>
      <pubDate>Mon, 15 Apr 2002 16:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703356#M902407</guid>
      <dc:creator>pap</dc:creator>
      <dc:date>2002-04-15T16:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703357#M902408</link>
      <description>Hi animesh,&lt;BR /&gt;&lt;BR /&gt; You don't need a domain line in resolv.conf. The search line effectively set the domain(s). I would remove the domain line &amp;amp; leave the search line as is.&lt;BR /&gt;Also the search order in the nsswitch.conf is important. If you have files first ensure the entry in the hosts file matches the host &amp;amp; doamin parts in the resolv.conf file.&lt;BR /&gt;Also you should check the DNS servers to insure you're in there. enter nslookup interactively by not specifying a host then enter&lt;BR /&gt;server DNS_server_ip&lt;BR /&gt;Then enter your host name &amp;amp; do reverse lookup by entering your host IP as ell. If either returns not found then have the DNS admins correct the entry.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Apr 2002 16:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703357#M902408</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-04-15T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703358#M902409</link>
      <description>Hi Animesh,&lt;BR /&gt;You need either search or domain line but not both.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Mon, 15 Apr 2002 16:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703358#M902409</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-04-15T16:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703359#M902410</link>
      <description>Hi Animesh,&lt;BR /&gt;&lt;BR /&gt;For availability and security reasons, I would personally prefer to set usage of /etc/hosts file before usage of the DNS servers in /etc/nsswitch.conf, i.e. use /etc/hosts for resolving critical hosts such as the local server and DNS for resolving non-critical hosts such as clients.&lt;BR /&gt;&lt;BR /&gt;Since your swlist works when resolv.conf was not in place, your /etc/hosts file is already populated correctly with your host-to-ip entry.&lt;BR /&gt;&lt;BR /&gt;Imagine the scenerio that your DNS servers could not be contacted over the network , your swlist (and swinstall, swremove as well) will likely fail in the following scenerios:&lt;BR /&gt;1) when DNS server is down&lt;BR /&gt;2) when router is down&lt;BR /&gt;3) when in single-user or maintenance mode&lt;BR /&gt;&lt;BR /&gt;Apart for availability reasons, from the security aspect, relying on /etc/hosts for translating host-to-ip for critical hosts reduce the chances of your system receiving illegitimate entries e.g.: spoofed DNS replies via&lt;BR /&gt;1) poisoned DNS cache&lt;BR /&gt;2) man-in-middle attacks&lt;BR /&gt;3) spoofed DNS servers&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 16 Apr 2002 02:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703359#M902410</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-16T02:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703360#M902411</link>
      <description>Hi Steven,&lt;BR /&gt;good suggestion.&lt;BR /&gt;But my question is when DNS server is down why&lt;BR /&gt;swlist not picking up the hostname from /etc/hosts?&lt;BR /&gt;Yesterday the hostname was not there in dns databse and after putting entry in dns swlist started working but when dns is not available as you mentioned swlist will not work.&lt;BR /&gt;And the reverse lookup is also not implemented in our dns server.Is that the reason?</description>
      <pubDate>Tue, 16 Apr 2002 02:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703360#M902411</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-04-16T02:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: dns client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703361#M902412</link>
      <description>Hi Animesh,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; But my question is when DNS server is down why &lt;BR /&gt;swlist not picking up the hostname from /etc/hosts? &lt;BR /&gt;&lt;BR /&gt;1) check /etc/hosts file whether the host entry is there:&lt;BR /&gt;&lt;BR /&gt;1.2.3.4 hostA hostA.xyz.com&lt;BR /&gt;&lt;BR /&gt;2) check /etc/nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts: files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;This will ensure that /etc/hosts is read before the DNS server is used to resolve the host names.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Tue, 16 Apr 2002 02:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-client/m-p/2703361#M902412</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-16T02:53:51Z</dc:date>
    </item>
  </channel>
</rss>

