- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DNS servers in /etc/resolv.conf
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
Forums
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
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
тАО02-13-2006 01:52 PM
тАО02-13-2006 01:52 PM
Is it possible to force hostname resolution to go through multiple DNS servers defined in /etc/resolv.conf until a resolution is done or the list of DNS servers is exhausted?
Eg: if /etc/resolv.conf contains
domain abcdef.com
nameserver nn.mm.xx.111
nameserver nn.mm.xx.222
is it possible to force the resolution process to attempt to use the second server if the first server returns NOTFOUND ?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:30 PM
тАО02-13-2006 02:30 PM
Re: DNS servers in /etc/resolv.conf
Yes, it's possible.
Check the manpage of resolv.conf for more details :
# man resolv.conf
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:34 PM
тАО02-13-2006 02:34 PM
Re: DNS servers in /etc/resolv.conf
Hi Albert,
A nameserver entry defines the Internet address of a remote DOMAIN name server to the resolver routines on the local domain.
Which is in the form of, The Address variable is the dotted decimal address of the remote name server.
If more than one name server is listed, the resolver routines query each name server (in the order listed) until either the query succeeds or the maximum number of attempts have been made.
we dont have to do anything particularly to achive your requirement.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:36 PM
тАО02-13-2006 02:36 PM
Re: DNS servers in /etc/resolv.conf
Hostname resolution using "resolv.conf" could be possible upto 3 nameservers. You can put them in the preferred order depending on your setup to get faster resolution.
If those nameservers are from different subdomains, then you can use "search" in the "resolve.conf".
If any of the nameservers is not available and depending upon timout policy you set, the other nameserver is tried atomatically. The timout policy is defined using "retrans" and "retry" option. Refer "resolver" man page for details of the options.
The hostname lookup for dns is assumed to be defined "nsswitch.conf" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 03:51 PM
тАО02-13-2006 03:51 PM
Re: DNS servers in /etc/resolv.conf
By default, the resolver does this:
[SUCCESS=return NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue].
So, if the first server is busy, or can't find the answer, then it goes to the next, and so on...
You can speed up the process by setting in resolv.conf retry and retrans:
retry 2
retrans 1000
Which tells the server to retry only twice and 1000 ms....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 04:29 PM
тАО02-13-2006 04:29 PM
Re: DNS servers in /etc/resolv.conf
Add Search option in resolv .conf
example: search abcdef.com
nameserver dd.ff.ff.tt
nameserver ee.ff.tt.gg
this can be solve your problem
regards
tvs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 04:33 PM
тАО02-13-2006 04:33 PM
Re: DNS servers in /etc/resolv.conf
You can have 3 nameservers setup in /etc/resolv.conf.
[NOTFOUND=contiue] method in /etc/nsswitch.conf for dns entry.
Before putting that check with nsquery command. It is good one.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 01:25 AM
тАО02-14-2006 01:25 AM
SolutionJeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2006 01:06 PM
тАО02-14-2006 01:06 PM
Re: DNS servers in /etc/resolv.conf
A highly desirable alternative for DNS is to use /etc/host as the first resolver rather than DNS. Put the (relatively few) production IP addresses in hosts and now DNS will not have nearly the impact it does when it fails. Use nsswitch.conf to configure this behavior (man switch).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 10:04 AM
тАО02-22-2006 10:04 AM
Re: DNS servers in /etc/resolv.conf
So I believe the short answer is "no", which my own experience has also borne out.