<?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: Finding all DNS aliases for a host using nslookup/dig/host or similar command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356806#M193451</link>
    <description>Bingo, Geoff's answer gets the result I was after, seems a little inefficient to pull all the hostnames from my domain, but it it works oh well.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help everyone.&lt;BR /&gt;&lt;BR /&gt;Rich Cardwell.</description>
    <pubDate>Mon, 16 Aug 2004 07:57:00 GMT</pubDate>
    <dc:creator>R Cardwell</dc:creator>
    <dc:date>2004-08-16T07:57:00Z</dc:date>
    <item>
      <title>Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356789#M193434</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Hopefully someone on here will know how to do this, as I have searched on here and on google to no avail.&lt;BR /&gt;&lt;BR /&gt;I'am trying to write a script that can retrieve a hosts ip address and all its alias when supplied with its fully qualified hostname.&lt;BR /&gt;&lt;BR /&gt;Now getting the IP is easy enough, however I can't seem to find a way to extract the aliases from DNS.&lt;BR /&gt;&lt;BR /&gt;Anyone know how to do this?&lt;BR /&gt;&lt;BR /&gt;Rich Cardwell</description>
      <pubDate>Fri, 13 Aug 2004 09:47:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356789#M193434</guid>
      <dc:creator>R Cardwell</dc:creator>
      <dc:date>2004-08-13T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356790#M193435</link>
      <description>How about something like: -&lt;BR /&gt;&lt;BR /&gt;$ nslookup&lt;BR /&gt;&lt;BR /&gt;&amp;gt; server1.yourdomain.com&lt;BR /&gt;&lt;BR /&gt;Name Server:  dns.yourdomain.com&lt;BR /&gt;Address:  134.202.170.200&lt;BR /&gt;&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name:    server1.yourdomain.com&lt;BR /&gt;Address:  134.202.4.2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then to get the aliases (CNAMES) for that domain: -&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ls -a yourdomain.com&lt;BR /&gt;&lt;BR /&gt;This will give a list of hostname-&amp;gt;hostname aliases.  You can grep your hostname from this to find your alises.</description>
      <pubDate>Fri, 13 Aug 2004 09:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356790#M193435</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-08-13T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356791#M193436</link>
      <description>Hmmm, that looks like it should do it. However I get the following output when I try that command&lt;BR /&gt;&lt;BR /&gt;*** Can't list domain XXX.XXX.XXX.XXX: Unspecified error&lt;BR /&gt;&lt;BR /&gt;or I get this&lt;BR /&gt;&lt;BR /&gt;*** Can't list domain XXX.XXX.XXX.XXX: Query refused&lt;BR /&gt;&lt;BR /&gt;Looks like a DNS, might be configured to reject these commands then.&lt;BR /&gt;&lt;BR /&gt;RichC</description>
      <pubDate>Fri, 13 Aug 2004 10:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356791#M193436</guid>
      <dc:creator>R Cardwell</dc:creator>
      <dc:date>2004-08-13T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356792#M193437</link>
      <description>If there are aliases existing for a host, the nslookup will output that info as well - usually towards the bottom of the nslookup output</description>
      <pubDate>Fri, 13 Aug 2004 10:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356792#M193437</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-08-13T10:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356793#M193438</link>
      <description>Hostname lookup are decided based on hosts: entry on /etc/nsswitch.conf file.&lt;BR /&gt;&lt;BR /&gt; If it is,&lt;BR /&gt;&lt;BR /&gt; hosts: files dns ldap ..&lt;BR /&gt; &lt;BR /&gt;  It will try to resolve on /etc/hosts (files) first then&lt;BR /&gt; &lt;BR /&gt; /etc/resolv.conf (dns) file&lt;BR /&gt;&lt;BR /&gt; It is good to use as,&lt;BR /&gt; &lt;BR /&gt; hosts: dns files &lt;OTHER methods=""&gt;&lt;BR /&gt;&lt;BR /&gt; in /etc/resolv.conf&lt;BR /&gt;  &lt;BR /&gt; domain test.com&lt;BR /&gt; nameserver xx.xx.xx.xx&lt;BR /&gt;&lt;BR /&gt; If you try &lt;BR /&gt;&lt;BR /&gt; # nslookup &lt;SERVERNAME&gt;&lt;BR /&gt;&lt;BR /&gt; It will give the resolved one now!!&lt;BR /&gt;&lt;BR /&gt; Else add the full entry on &lt;BR /&gt;&lt;BR /&gt; /etc/hosts file as,&lt;BR /&gt; &lt;BR /&gt; IP-Address &lt;FQDN&gt; aliasname&lt;BR /&gt; 172.16.1.68 test.test.com test&lt;BR /&gt;&lt;BR /&gt; It will do that also&lt;BR /&gt; nameserver&lt;/FQDN&gt;&lt;/SERVERNAME&gt;&lt;/OTHER&gt;</description>
      <pubDate>Fri, 13 Aug 2004 10:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356793#M193438</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-13T10:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356794#M193439</link>
      <description>Doesn't seem to Rick, I'am doing queries on a server I know to have 5 aliases and it just returns the hostname I supply and its IP address.&lt;BR /&gt;&lt;BR /&gt;Rich Cardwell</description>
      <pubDate>Fri, 13 Aug 2004 10:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356794#M193439</guid>
      <dc:creator>R Cardwell</dc:creator>
      <dc:date>2004-08-13T10:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356795#M193440</link>
      <description>Hi Rich,&lt;BR /&gt;&lt;BR /&gt;When you say:&lt;BR /&gt;&lt;BR /&gt;____________________________________&lt;BR /&gt;&lt;BR /&gt;I am doing queries on a server I know to have 5 aliases and it just returns the hostname I supply and its IP address. &lt;BR /&gt;____________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How do you know there are 5 aliases for this IP address?  Is it that the /etc/hosts file has 5 aliases for this IP address, or do you know for a fact that the DNS table you're using has all 5 aliases?  I just want to be sure that the DNS tables you're using were built appropriately to contain all 5 aliases.&lt;BR /&gt;&lt;BR /&gt;A couple of things to try, if nslookup is not returning what you want:&lt;BR /&gt;&lt;BR /&gt;1) Try nsquery&lt;BR /&gt;&lt;BR /&gt;# nsquery hosts ros-resolver dns&lt;BR /&gt;&lt;BR /&gt;Using "dns" for the hosts policy.&lt;BR /&gt;&lt;BR /&gt;Searching dns for ros-resolver&lt;BR /&gt;Hostname: rose-resolver&lt;BR /&gt;Aliases: ros-resolver&lt;BR /&gt;Address: XXX.XXX.XXX.XXX&lt;BR /&gt;Switch configuration: Terminates Search&lt;BR /&gt;&lt;BR /&gt;This program allows you to override whatever search routine is specified in your /etc/nsswitch.conf file and use whichever name repositories you wish.  As you can see from my above example, it returned the hostname, IP address and alias information.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) If you are not absolutely certain that DNS contains all of the alias information, you can verify this by collecting a network trace of the DNS query and look at the answer packet in the trace.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;================================ IP Header (outbound -- pid: 355033) =========&lt;BR /&gt;Source:  hpatcux9.rose.hp.com(A) Dest:  rose-resolver.americas.hp.net(A)&lt;BR /&gt;       len:  74      ttl: 64    proto: 17     cksum:  0x19bc      id: 0x6fe5&lt;BR /&gt;     flags:  DF      tos: 0x0  hdrlen: 20    offset:  0x0     optlen: 0&lt;BR /&gt;-------------------------------- UDP Header ----------------------------------&lt;BR /&gt;sport:   63319   --&amp;gt;   dport:  domain     data len: 46    chksum: 0xb149&lt;BR /&gt;-------------------------------- BIND Header ---------------------------------&lt;BR /&gt;     flags: rd&lt;BR /&gt;    opcode: QUERY      rcode: NOERROR       id: 0x36df&lt;BR /&gt;   qdcount: 0x1      ancount: 0x0      nscount: 0x0      arcount: 0x0&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUESTIONS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;        domain name: ros-resolver.americas.hp.net&lt;BR /&gt;               type: A         class: IN&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;================================ IP Header (inbound -- [ICS]) ================&lt;BR /&gt;Source:  rose-resolver.americas.hp.net(A) Dest:  hpatcux9.rose.hp.com(A)&lt;BR /&gt;       len:  302     ttl: 62    proto: 17     cksum:  0x8abd      id: 0x0&lt;BR /&gt;     flags:  DF      tos: 0x0  hdrlen: 20    offset:  0x0     optlen: 0&lt;BR /&gt;-------------------------------- UDP Header ----------------------------------&lt;BR /&gt;sport:   domain   --&amp;gt;   dport:  63319     data len: 274   chksum: 0x641&lt;BR /&gt;-------------------------------- BIND Header ---------------------------------&lt;BR /&gt;     flags: qr aa rd ra&lt;BR /&gt;    opcode: QUERY      rcode: NOERROR       id: 0x36df&lt;BR /&gt;   qdcount: 0x1      ancount: 0x2      nscount: 0x5      arcount: 0x5&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUESTIONS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;        domain name: ros-resolver.americas.hp.net&lt;BR /&gt;               type: A         class: IN&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ANSWERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;   domain name: ros-resolver.americas.hp.net&lt;BR /&gt;          type: CNAME     class: IN        ttl: 28800     dlen: 16&lt;BR /&gt;          domain name: rose-resolver.americas.hp.net&lt;BR /&gt;&lt;BR /&gt;   domain name: rose-resolver.americas.hp.net&lt;BR /&gt;          type: A         class: IN        ttl: 7200     dlen: 4&lt;BR /&gt;          internet address: 15.251.192.51&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I've removed some of the information from the ANSWER packet for simplicity, but you can see at the top of the ANSWER packet is the primary hostname and the alias information.&lt;BR /&gt;&lt;BR /&gt;If a network trace doesn't show this information then my guess is you don't have your DNS tables built correctly.&lt;BR /&gt;&lt;BR /&gt;3) Use nslookup debug mode&lt;BR /&gt;&lt;BR /&gt;# nslookup -d2 rose-resolver.americas.hp.net&lt;BR /&gt;------------&lt;BR /&gt;SendRequest(), len 44&lt;BR /&gt;    HEADER:&lt;BR /&gt;        opcode = QUERY, id = 13505, rcode = NOERROR&lt;BR /&gt;        header flags:  query, want recursion&lt;BR /&gt;        questions = 1,  answers = 0,  authority records = 0,  additional = 0&lt;BR /&gt;&lt;BR /&gt;    QUESTIONS:&lt;BR /&gt;        51.192.251.15.in-addr.arpa, type = PTR, class = IN&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;------------&lt;BR /&gt;Got answer (296 bytes):&lt;BR /&gt;    HEADER:&lt;BR /&gt;        opcode = QUERY, id = 13505, rcode = NOERROR&lt;BR /&gt;        header flags:  response, auth. answer, want recursion, recursion avail.&lt;BR /&gt;        questions = 1,  answers = 2,  authority records = 5,  additional = 5&lt;BR /&gt;&lt;BR /&gt;    QUESTIONS:&lt;BR /&gt;        51.192.251.15.in-addr.arpa, type = PTR, class = IN&lt;BR /&gt;    ANSWERS:&lt;BR /&gt;    -&amp;gt;  51.192.251.15.in-addr.arpa&lt;BR /&gt;        type = PTR, class = IN, dlen = 31&lt;BR /&gt;        name = rose-resolver.americas.hp.net&lt;BR /&gt;        ttl = 7200 (2H)&lt;BR /&gt;    -&amp;gt;  51.192.251.15.in-addr.arpa&lt;BR /&gt;        type = PTR, class = IN, dlen = 13&lt;BR /&gt;        name = forwarders.americas.hp.net&lt;BR /&gt;        ttl = 7200 (2H)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Again, I've striped out much of the reply packet for simplicity, but this should show you the same information as the network trace, and you can verify whether the DNS tables were populated with the aliases.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 13 Aug 2004 14:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356795#M193440</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2004-08-13T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356796#M193441</link>
      <description>ls -a domainname will not work if the port 53/TCP is blocked or if the DNS has been configured to accept zone transfer requests only from specific hosts (typically secondary DNS servers).</description>
      <pubDate>Fri, 13 Aug 2004 15:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356796#M193441</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-08-13T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356797#M193442</link>
      <description>In looking into this question off and on today, the only way I've been able to get the alias (CNAME record) from nslookup or nsquery is to use the alias as the argument instead of the hostname or IP address. Though I seem to recall years ago on SunOS 4 and IRIX 4 being able to use ANY as the querytype to get all records for a hostname or IP address from DNS (and the nslookup man page states this is the case), it doesn't appear to work on HP-UX. I know the systems I have at work are behind on patches though and they are 11.00... I can try it out at home tonight on my 11i workstation to see if it behaves the same or not.</description>
      <pubDate>Fri, 13 Aug 2004 15:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356797#M193442</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-13T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356798#M193443</link>
      <description>&lt;P data-unlink="true"&gt;Here are 3 nslookups from one of my HP-UX 11.11 machines. nslookup for me lists all aliases, or all IPs, if more than 1 exists.&lt;BR /&gt;&lt;BR /&gt;# nslookup whpackage1&lt;BR /&gt;Using /etc/hosts on: hqunm01&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Name: whpackage1.d.com&lt;BR /&gt;Address: 170.7.2.11&lt;BR /&gt;Aliases: whpackage1, wh06.d.com, wh07.d.com,wh09.d.com, wh14.d.com, wh15.d.com, wh17.d.com, wh40.d.com, wh63.d.com, wh16.d.com&lt;BR /&gt;&lt;BR /&gt;# nslookup 170.7.2.11&lt;BR /&gt;Using /etc/hosts on: hqunm01&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Name: whpackage1.d.com&lt;BR /&gt;Address: 170.7.2.11&lt;BR /&gt;Aliases: whpackage1, wh06.d.com, wh07d.com, wh09.d.com, wh14.d.com, wh15.d.com, wh17.d.com, wh40.d.com, wh63.d.com, wh16.d.com&lt;BR /&gt;&lt;BR /&gt;# nslookup &lt;A href="http://www.yahoo.com" target="_blank" rel="noopener"&gt;www.yahoo.com&lt;/A&gt;&lt;BR /&gt;Using /etc/hosts on: hqunm01&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;Non-authoritative answer:&lt;BR /&gt;Name: &lt;U&gt;&lt;STRIKE&gt;&lt;A&gt;www.yahoo.akadns.net&lt;/A&gt;&lt;/STRIKE&gt;&lt;/U&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;[Admin: The link is no longer valid&amp;gt; Broken Link removed]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Addresses: 216.109.117.110, 216.109.118.68, 216.109.118.75, 216.109.118.78,216.109.118.72, 216.109.117.108, 216.109.117.107, 216 109.117.205&lt;BR /&gt;Aliases: &lt;A href="http://www.yahoo.com" target="_blank" rel="noopener"&gt;www.yahoo.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356798#M193443</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2020-09-30T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356799#M193444</link>
      <description>&lt;P data-unlink="true"&gt;Hi Patrick,&lt;BR /&gt;&lt;BR /&gt;I think Jeff's point is that when you use DNS as your resolver, it appears to only return the alias names if you search using an alias name. In your first two examples you were using /etc/hosts for resolution. In the 3rd example you used DNS but you specified the alias name. Try #3 again using the real name. On my system I get:&lt;BR /&gt;&lt;BR /&gt;# nslookup &lt;A&gt;www.yahoo.com&lt;/A&gt;&lt;BR /&gt;Name Server: rose-resolver.americas.hp.net&lt;BR /&gt;Address: 15.251.192.51&lt;BR /&gt;&lt;BR /&gt;Trying DNS&lt;BR /&gt;Non-authoritative answer:&lt;BR /&gt;Name: &lt;STRIKE&gt;&lt;U&gt;&lt;A&gt;www.yahoo.akadns.net&lt;/A&gt;&lt;/U&gt;&lt;/STRIKE&gt;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;[Admin: The link is no longer valid&amp;gt; Broken Link removed]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Addresses: 66.94.230.44, 66.94.230.46, 66.94.230.43, 66.94.230.32&lt;BR /&gt;66.94.230.51, 66.94.230.37, 66.94.230.48, 66.94.230.42&lt;BR /&gt;Aliases: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# nslookup &lt;U&gt;&lt;STRIKE&gt;&lt;A&gt;www.yahoo.akadns.net&lt;/A&gt;&lt;/STRIKE&gt;&lt;/U&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;[Admin: The link is no longer valid&amp;gt; Broken Link removed]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Name Server: rose-resolver.americas.hp.net&lt;BR /&gt;Address: 15.251.192.51&lt;BR /&gt;&lt;BR /&gt;Trying DNS&lt;BR /&gt;Non-authoritative answer:&lt;BR /&gt;Name: &lt;STRIKE&gt;&lt;U&gt;&amp;lt;&amp;gt;&lt;A&gt;www.yahoo.akadns.net&lt;/A&gt;&lt;/U&gt;&lt;/STRIKE&gt;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;[Admin: The link is no longer valid&amp;gt; Broken Link removed]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Addresses: 66.94.230.48, 66.94.230.46, 66.94.230.33, 66.94.230.44&lt;BR /&gt;66.94.230.52, 66.94.230.42, 66.94.230.32, 66.94.230.50&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The first query returns the alias name because I searched using the alias name. The 2nd query did not return the alias name because I specified the "real" name.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rich - is this the same behavior you get? If you search using an alias name do you get all the aliases but when you search using the "primary" name you don't get the aliases, or are you not getting alias information at all?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356799#M193444</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2020-09-29T12:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356800#M193445</link>
      <description>I just tried the same thing on one of my HP-UX 11.0 boxes and the aliases do NOT show up.  I wonder if it is patch related......</description>
      <pubDate>Fri, 13 Aug 2004 16:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356800#M193445</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-08-13T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356801#M193446</link>
      <description>I just got home and did some experimenting... this issue seems to be platform specific and HP doesn't handle it like MS, Apple, or Red Hat. Here's what I tried...&lt;BR /&gt;&lt;BR /&gt;I have a DNS server set up for my home network. I have two CNAME records set up for the Linux system. With no corresponding PTR records for the CNAME records, the only way I could get any of the lookup tools (nslookup, nsquery, host) to return the aliases was to use the alias as the argument in the lookup command query as I stated previously... and then it would only return that particular alias, not all of them.&lt;BR /&gt;&lt;BR /&gt;When I added PTR records for each CNAME, the differences in implementation surfaced. On MacOS X, Windows XP, and Red Hat Fedora Core 2, doing the lookup on the IP address would return all aliases regardless of the tool used. On HP-UX, it doesn't. (I'm patched upto June 2003 for required patches and Sept. 2003 on Support and Hardware Enabled patches on 11.11.)&lt;BR /&gt;&lt;BR /&gt;I would personally classify this as a bug in HP's implementation since everyone else at least returns the aliases with an IP address provided if the PTR records are in DNS.</description>
      <pubDate>Fri, 13 Aug 2004 17:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356801#M193446</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-13T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356802#M193447</link>
      <description>Oops. I take that back... nslookup on WinXP only returns the A record and not the CNAME records when given the IP address when the PTR records are present... but, then again, we all expect MS stuff to be broken, right? :)&lt;BR /&gt;&lt;BR /&gt;I looked for "nslookup" in the patch database and found PHNE_30068 for 11.11. (There were several others all related to OV.) Applying it didn't solve the problem, but it did change the behavior of the results (or I just noticed the behavior after the patch anyway)... doing the nslookup or nsquery cycles through the A record and CNAME records in its results when the IP address is supplied (not in a regular fashion that I can determine), but still doesn't show them all.</description>
      <pubDate>Fri, 13 Aug 2004 17:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356802#M193447</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-13T17:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356803#M193448</link>
      <description>Thanks for all the responses, I have had a look at the responses and tried the various solutions that have been presented however, I still can't get the output I'am after.&lt;BR /&gt;&lt;BR /&gt;The host aliases are definately in DNS, as I can perform nslookup's on each hostname and and they all return the same IP address. The only difference is when I do a nslookup on the primary hostname it just returns the IP, whereas when do perform an nslookup lookup on an aliases, it returns the primary hostname, ip address and an additional alias field with the alias name. Reverse lookups of the IP address always return the primary hostname without any reference to the aliases.&lt;BR /&gt;&lt;BR /&gt;Rich Cardwell.&lt;BR /&gt;&lt;BR /&gt;nb: I applied the latest DNS/BIND patch, and this hasn't fixed the output.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Aug 2004 04:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356803#M193448</guid>
      <dc:creator>R Cardwell</dc:creator>
      <dc:date>2004-08-16T04:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356804#M193449</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt; If you have aliases for that host / ip-address then you will get the informations of all aliases.&lt;BR /&gt;&lt;BR /&gt; It is good to have your work / tries to analyse more.&lt;BR /&gt;&lt;BR /&gt; Try to check as,&lt;BR /&gt; &lt;BR /&gt;  nsquery hosts &lt;FQDN&gt; "dns"&lt;BR /&gt;  &lt;BR /&gt;  nsquery hosts &lt;IP-ADDRESS&gt; "dns"&lt;BR /&gt;&lt;BR /&gt;  nsquery hosts &lt;ALIAS&gt; "dns"&lt;BR /&gt;&lt;BR /&gt; Are you getting differences over there.&lt;BR /&gt;&lt;BR /&gt; Pls specify the informations and tests you have done and difference to forums so that all will give their views.&lt;BR /&gt; &lt;BR /&gt;&lt;/ALIAS&gt;&lt;/IP-ADDRESS&gt;&lt;/FQDN&gt;</description>
      <pubDate>Mon, 16 Aug 2004 05:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356804#M193449</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-16T05:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356805#M193450</link>
      <description>This is how to get the CNAME:&lt;BR /&gt;&lt;BR /&gt;dig @DNSSERVER yourdomain.com axfr |grep CNAME |grep HOST&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;dig @mydnsserver mydomain.com axfr |grep CNAME |grep server1&lt;BR /&gt;w052.mydomian.com.       14400   IN      CNAME   server1.mydomain.com.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Aug 2004 07:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356805#M193450</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-08-16T07:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356806#M193451</link>
      <description>Bingo, Geoff's answer gets the result I was after, seems a little inefficient to pull all the hostnames from my domain, but it it works oh well.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help everyone.&lt;BR /&gt;&lt;BR /&gt;Rich Cardwell.</description>
      <pubDate>Mon, 16 Aug 2004 07:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-all-dns-aliases-for-a-host-using-nslookup-dig-host-or/m-p/3356806#M193451</guid>
      <dc:creator>R Cardwell</dc:creator>
      <dc:date>2004-08-16T07:57:00Z</dc:date>
    </item>
  </channel>
</rss>

