HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IPv6 problem
Operating System - HP-UX
1833641
Members
3680
Online
110062
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
Forums
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
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
03-19-2007 08:01 AM
03-19-2007 08:01 AM
IPv6 problem
Hi,
I'm running: "HP-UX glade B.11.11 U 9000/800 unknown"
This is from one of our developers..his code:
------SNIP---------------
I can look up IPv6 names with getaddrinfo(), but getnameinfo() is
failing. This C++ test program:
#include
#include
#include
#include
int main (int argc, char**argv) {
sockaddr_in6 sin6;
int err = inet_pton (AF_INET6,
"2001:470:1f00:1056:202:b3ff:fe1d:b515",
&sin6.sin6_addr);
printf ("inet_pton() returned %d\n", err);
sin6.sin6_family = AF_INET6;
sin6.sin6_port = htons(0);
sin6.sin6_flowinfo = 0;
sin6.sin6_scope_id = 0;
char hostbuf[NI_MAXHOST];
int flags = NI_NAMEREQD;
err = getnameinfo (reinterpret_cast(&sin6),
sizeof (sin6),
hostbuf,
sizeof (hostbuf),
0,
0,
flags);
printf ("getnameinfo() returned %d (%s)\n", err, gai_strerror
(err));
}
prints:
inet_pton() returned 1
getnameinfo() returned 8 (host nor service provided, or not known)
------SNIP---------------
The address translates fine from the command line:
glade:test$ nslookup -type=ptr
5.1.5.b.d.1.e.f.f.f.3.b.2.0.2.0.6.5.0.1.0.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa.
Using /etc/hosts on: ginger
looking up FILES
Trying DNS
Non-authoritative answer:
5.1.5.b.d.1.e.f.f.f.3.b.2.0.2.0.6.5.0.1.0.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa
name = kohaku.sarna.org
nsswitch.conf - ipnodes: dns [NOTFOUND=return] files
This works on solaris and linux boxes that are connected through the same router.
What else can i check? /etc/hosts has ginger's ipv6 address....
Thank you,
Asya
I'm running: "HP-UX glade B.11.11 U 9000/800 unknown"
This is from one of our developers..his code:
------SNIP---------------
I can look up IPv6 names with getaddrinfo(), but getnameinfo() is
failing. This C++ test program:
#include
#include
#include
#include
int main (int argc, char**argv) {
sockaddr_in6 sin6;
int err = inet_pton (AF_INET6,
"2001:470:1f00:1056:202:b3ff:fe1d:b515",
&sin6.sin6_addr);
printf ("inet_pton() returned %d\n", err);
sin6.sin6_family = AF_INET6;
sin6.sin6_port = htons(0);
sin6.sin6_flowinfo = 0;
sin6.sin6_scope_id = 0;
char hostbuf[NI_MAXHOST];
int flags = NI_NAMEREQD;
err = getnameinfo (reinterpret_cast
sizeof (sin6),
hostbuf,
sizeof (hostbuf),
0,
0,
flags);
printf ("getnameinfo() returned %d (%s)\n", err, gai_strerror
(err));
}
prints:
inet_pton() returned 1
getnameinfo() returned 8 (host nor service provided, or not known)
------SNIP---------------
The address translates fine from the command line:
glade:test$ nslookup -type=ptr
5.1.5.b.d.1.e.f.f.f.3.b.2.0.2.0.6.5.0.1.0.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa.
Using /etc/hosts on: ginger
looking up FILES
Trying DNS
Non-authoritative answer:
5.1.5.b.d.1.e.f.f.f.3.b.2.0.2.0.6.5.0.1.0.0.f.1.0.7.4.0.1.0.0.2.ip6.arpa
name = kohaku.sarna.org
nsswitch.conf - ipnodes: dns [NOTFOUND=return] files
This works on solaris and linux boxes that are connected through the same router.
What else can i check? /etc/hosts has ginger's ipv6 address....
Thank you,
Asya
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2007 08:02 AM
03-19-2007 08:02 AM
Re: IPv6 problem
sorry..nslookup was done on ginger, not glade.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2007 01:57 PM
03-19-2007 01:57 PM
Re: IPv6 problem
On the off chance that getnameinfo() is looking in a file other than /etc/hosts you might try tusc'ing your test program.
there is no rest for the wicked yet the virtuous have no pillows
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP