- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "host" lookup of alias fails (nslookup works) 11.3...
Operating System - HP-UX
1755139
Members
2568
Online
108830
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2010 03:27 PM
02-11-2010 03:27 PM
"host" lookup of alias fails (nslookup works) 11.31 IPv6
We are testing name resolution of IPv6.
"nslookup" seems to fail for IPv6 but worrks for DNS aliases..
"host" works for IPv6, except not for DNS aliases, only the first hostname listed (regardless of IPv6) gets found.
I seem to caught without a solution.
OS: 11.31, March 2009 patch bundle.
nsswitch.conf told to continue:
# grep hosts /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] nis [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
# grep ipnodes /etc/nsswitch.conf
#ipnodes: files[NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
ipnodes: files
#
NOTE: "ipnodes" does not exist locally or in NIS/DNS.
-----
Here "host" fails aliases "nslookup" works:
# host zebrajunk
Host zebrajunk not found: 3(NXDOMAIN)
# host zebrajunk server 10.80.120.100
;; connection timed out; no servers could be reached
# nslookup zebrajunk 10.80.120.100
Name Server: blitzen.min.company.com
Address: 10.80.120.100
Trying DNS
Name: zebra.min.company.com
Address: 10.80.120.103
Aliases: zebrajunk.min.company.com
#
----------------
Here, host meets my IPv6 need but nslookup fails
# host esprit
esprit.min.company.com has address 10.80.153.225
esprit.min.company.com has IPv6 address fc44:53f9:cb30:120::99e1
# nslookup fc44:53f9:cb30:120::99e1
Using /etc/hosts on: barnes
looking up FILES
Trying NIS
Trying DNS
*** rmndns6.min.company.com can't find fc44:53f9:cb30:120::99e1: Non-existent domain
# host fc44:53f9:cb30:120::99e1
1.e.9.9.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.3.b.c.9.f.3.5.4.4.c.f.ip6.arpa domain name pointer esprit.min.company.com.
#
"nslookup" seems to fail for IPv6 but worrks for DNS aliases..
"host" works for IPv6, except not for DNS aliases, only the first hostname listed (regardless of IPv6) gets found.
I seem to caught without a solution.
OS: 11.31, March 2009 patch bundle.
nsswitch.conf told to continue:
# grep hosts /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] nis [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
# grep ipnodes /etc/nsswitch.conf
#ipnodes: files[NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns
ipnodes: files
#
NOTE: "ipnodes" does not exist locally or in NIS/DNS.
-----
Here "host" fails aliases "nslookup" works:
# host zebrajunk
Host zebrajunk not found: 3(NXDOMAIN)
# host zebrajunk server 10.80.120.100
;; connection timed out; no servers could be reached
# nslookup zebrajunk 10.80.120.100
Name Server: blitzen.min.company.com
Address: 10.80.120.100
Trying DNS
Name: zebra.min.company.com
Address: 10.80.120.103
Aliases: zebrajunk.min.company.com
#
----------------
Here, host meets my IPv6 need but nslookup fails
# host esprit
esprit.min.company.com has address 10.80.153.225
esprit.min.company.com has IPv6 address fc44:53f9:cb30:120::99e1
# nslookup fc44:53f9:cb30:120::99e1
Using /etc/hosts on: barnes
looking up FILES
Trying NIS
Trying DNS
*** rmndns6.min.company.com can't find fc44:53f9:cb30:120::99e1: Non-existent domain
# host fc44:53f9:cb30:120::99e1
1.e.9.9.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.3.b.c.9.f.3.5.4.4.c.f.ip6.arpa domain name pointer esprit.min.company.com.
#
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2010 01:46 AM
02-12-2010 01:46 AM
Re: "host" lookup of alias fails (nslookup works) 11.31 IPv6
Hello,
a) I think host(1M) command consults /etc/resolv.conf. It is a DNS lookup
tool, so there is no need to check
/etc/nsswitch.conf at all.
b) Your entry for ipnodes directive is
incorrect.
If you plan to use DNS for IPv6, your entry
for ipnodes should include it. In fact,
the recommendation is to use the
same config for "hosts" and "ipnodes"
directives in /etc/nsswitch.conf.
c) The "ipnodes" directive might not be
supported in the future HP-UX releases.
Cheers,
VK2COT
a) I think host(1M) command consults /etc/resolv.conf. It is a DNS lookup
tool, so there is no need to check
/etc/nsswitch.conf at all.
b) Your entry for ipnodes directive is
incorrect.
If you plan to use DNS for IPv6, your entry
for ipnodes should include it. In fact,
the recommendation is to use the
same config for "hosts" and "ipnodes"
directives in /etc/nsswitch.conf.
c) The "ipnodes" directive might not be
supported in the future HP-UX releases.
Cheers,
VK2COT
VK2COT - Dusan Baljevic
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP