- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I disable IPv6 lookup when querying DNS?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО11-17-2010 12:55 PM
тАО11-17-2010 12:55 PM
So, I want to know if there is a way to tell the lookup process NOT to check for IPv6 addresses or tell it to prefer IPv4 addresses?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 03:06 PM
тАО11-17-2010 03:06 PM
Re: Can I disable IPv6 lookup when querying DNS?
ipnodes: files [NOTFOUND=return]
in /etc/nsswitch.conf
You can check the syntax and modify that as per your usage.
Check it with tcpdump port 54 afterwards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 03:41 PM
тАО11-17-2010 03:41 PM
Re: Can I disable IPv6 lookup when querying DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 06:26 PM
тАО11-17-2010 06:26 PM
Re: Can I disable IPv6 lookup when querying DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2010 08:02 PM
тАО11-17-2010 08:02 PM
Solutionnsswitch.conf MUST have:
ipnodes: files
to avoid DNS issues. Some DNS servers do not support IPv6 and some are just not configured for IPv6 support, all causing DNS resolution delays.
But for 11.23 and 11.31, I discovered that getipnodebyname, getipnodebyaddr, gethostint, getaddrinfo all have IPv6 embedded with nothing to turn that 'feature' off.
icmp will try IPv6 and if fails, IPv4 only when there is a DNS server declared
in resolv.conf.
If you want to pretty much disable IPv6 junk, you can rename the ipv6 device file:
mv /dev/ipv6 /dev/ipv6-deny
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 07:47 AM
тАО11-18-2010 07:47 AM
Re: Can I disable IPv6 lookup when querying DNS?
Bill - Your information is what I needed. I am a bit hesitant about renaming the driver. Have you actually done that?
Thanks all for the feedback!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 07:58 AM
тАО11-18-2010 07:58 AM
Re: Can I disable IPv6 lookup when querying DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 01:10 PM
тАО11-18-2010 01:10 PM
Re: Can I disable IPv6 lookup when querying DNS?
I would not expect gethostbyname() to ask for IPv6 addresses. If a gethostbyname() call is actually triggering queries for IPv6 addresses, that might be something worth mentioning to the Response Center.
(*) conversion from gethostbyname() to getaddrinfo() should have started years ago, so if you have apps you've not converted, get started!-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 02:12 PM
тАО11-18-2010 02:12 PM
Re: Can I disable IPv6 lookup when querying DNS?
As for our native code, I do not know if we have updated it or not. However, if not we will be doing that in 2011.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 02:20 PM
тАО11-18-2010 02:20 PM
Re: Can I disable IPv6 lookup when querying DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 02:59 PM
тАО11-18-2010 02:59 PM
Re: Can I disable IPv6 lookup when querying DNS?
and why did I write:
You can check the syntax and modify that as per your usage.
:) :)
However...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 03:08 PM
тАО11-18-2010 03:08 PM
Re: Can I disable IPv6 lookup when querying DNS?
what i have is:
root@xxxx:/tmp # cat /etc/nsswitch.conf |grep -e host -e ipnodes
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return]
ipnodes: files [NOTFOUND=return]
and nslookup query for something which is not in /etc/hosts:
root@xxxxx:/tmp # nslookup drc-cifs-pr6
Using /etc/hosts on: sustw4
looking up FILES
Trying DNS
Name: drc-cifs-pr6.xxx.com.xx
Address: 10.101.1.154
It *goes* to DNS as per the hosts configuration in nsswitch.conf. ;)
So, bottom line is till you understand the syntax, it will work as you need.
----- There is no single answer in UNIX. ;)