HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Bind for loadsharing and cache mechanisms
Operating System - HP-UX
1835921
Members
2539
Online
110088
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
04-14-2008 10:26 AM
04-14-2008 10:26 AM
Bind for loadsharing and cache mechanisms
Hello,
1. We have 2 x RP4440 with HP-UX 11.1 and Bind 9.3
2. These two servers run 4 applications via forked process (many tens instance).
3. These two servers needs to communicate with a linux cluster 10 machines each one with one IP @ (Load sharing).
4. The 10 Linux machines are grouped under an external authoritative DNS server DNS1 as one name (multiple A records): prodhost.company.com
prodhost IN A 10.10.10.1
IN A 10.10.10.2
..
IN A 10.10.10.10
So our RP4440 triggers the DNS1, get the 10 IP @ in different orders (configured on DNS1) and start communication.
My questions are:
- Is there a way to configure RP4440 with Bind as cache DNS ?? if yes how ?
If we can do it
- When a process/instance will need to talk to the linux machines the flow is:
Process => gethostbyname => Cache ?
Will the gethostbyname use the first IP or is random ??
Thanks in advance.
1. We have 2 x RP4440 with HP-UX 11.1 and Bind 9.3
2. These two servers run 4 applications via forked process (many tens instance).
3. These two servers needs to communicate with a linux cluster 10 machines each one with one IP @ (Load sharing).
4. The 10 Linux machines are grouped under an external authoritative DNS server DNS1 as one name (multiple A records): prodhost.company.com
prodhost IN A 10.10.10.1
IN A 10.10.10.2
..
IN A 10.10.10.10
So our RP4440 triggers the DNS1, get the 10 IP @ in different orders (configured on DNS1) and start communication.
My questions are:
- Is there a way to configure RP4440 with Bind as cache DNS ?? if yes how ?
If we can do it
- When a process/instance will need to talk to the linux machines the flow is:
Process => gethostbyname => Cache ?
Will the gethostbyname use the first IP or is random ??
Thanks in advance.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 12:13 AM
04-26-2008 12:13 AM
Re: Bind for loadsharing and cache mechanisms
- Is there a way to configure RP4440 with Bind as cache DNS ??
Certainly.
See this example in BIND 9.3 documentation:
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334
- When a process/instance will need to talk to the linux machines...
The more detailed description of the flow is:
Process => gethostbyname => /etc/nsswitch.conf (hosts: line)
then in the order specified by the hosts line in nsswitch.conf:
* if "dns" is specified:
/etc/resolv.conf => first DNS server listed in there
** if it does not answer, then the second DNS server listed in resolv.conf etc...
* if "hosts" is specified, look up in /etc/hosts
To get the processes on your rp4440s use the local DNS cache offered by BIND, specify "nameserver 127.0.0.1" as your first nameserver in /etc/resolv.conf. Make sure that /etc/nsswitch.conf allows the use of DNS.
- Will the gethostbyname use the first IP or is it random?
The gethostbyname() function returns all the addresses at once. Usually the applications will just use the first address returned. This is why the DNS server (BIND) will randomize the order of the A records in the answer, unless configured to do otherwise:
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering
MK
Certainly.
See this example in BIND 9.3 documentation:
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334
- When a process/instance will need to talk to the linux machines...
The more detailed description of the flow is:
Process => gethostbyname => /etc/nsswitch.conf (hosts: line)
then in the order specified by the hosts line in nsswitch.conf:
* if "dns" is specified:
/etc/resolv.conf => first DNS server listed in there
** if it does not answer, then the second DNS server listed in resolv.conf etc...
* if "hosts" is specified, look up in /etc/hosts
To get the processes on your rp4440s use the local DNS cache offered by BIND, specify "nameserver 127.0.0.1" as your first nameserver in /etc/resolv.conf. Make sure that /etc/nsswitch.conf allows the use of DNS.
- Will the gethostbyname use the first IP or is it random?
The gethostbyname() function returns all the addresses at once. Usually the applications will just use the first address returned. This is why the DNS server (BIND) will randomize the order of the A records in the answer, unless configured to do otherwise:
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering
MK
MK
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