- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: name resolution
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
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
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
08-20-2001 12:17 AM
08-20-2001 12:17 AM
name resolution
lan0=192.168.4.1
lan1=172.16.4.1
the two interface doesn't communicate between them(they are separated).
The hostname of the server is SERVER1 for both interface(Is it possible?).
Since I have only one domain(mydomain.com), but two different DNS server,one for the network of lan0 and one for the network of lan1, how can I configure my server(the /etc/hosts , /etc/resolv.conf and /etc/nisswitch.conf files)?
thanks in advance for every help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 12:32 AM
08-20-2001 12:32 AM
Re: name resolution
If you only have one domain you do not need to worry! It should not matter on which interface the resolution comes from. (I assumung you have two DNS servers one on 172 & one on 192).
You have a choice of 3 things
* Name resolves to 172 address, local routing
* Name resolves to 192 address, local routing
* Name neither 172 or 192. This will depend on your routing table but you probably have one or more default routers & they should come into play. If not then there IS no route to the host (that your m/c knows of).
The routing configuration is viewed with
# netstat -r[n]
(routing info).
I think this answers you question.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 12:35 AM
08-20-2001 12:35 AM
Re: name resolution
It is not advisible to use the same alias for multiple IP addresses. When using the same aliases it is hard to keep control over the network communication and routing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 12:37 AM
08-20-2001 12:37 AM
Re: name resolution
As far as I know it is not good to asign the same name to two differnt network interfaces, thus I suggest to assign different names.
Name resolution based on dns for two nets you can configure in /rtc/resolv.conf - just put two lines: first for nameserver of the first net and second line for the nameserver of the second net. When dns won't be able to resolve the name through the first nameserver it will ask the second namserver.
later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 12:44 AM
08-20-2001 12:44 AM
Re: name resolution
/etc/resolv.conf
domain mydomain.com
server 172.16.?.?
server 192.168.4.?
* the order here is up to you.
/etc/nsswitch.conf
hosts dns [NOTFOUND=CONTINUE] files
* The order here is up to you
/etc/hosts
192.168.4.1 server1 server1.mydomain.com server1-192
172.16.4.1 server1 server1.mydomain.com server1-172
* The order her is up to you. I personally NOT have two addresses with the same name (but you can). So here I would also give aliases for each interface.
** BEWARE **
if you do have two addresses with the same host name, DNS will 'round robin them. So If there is not route from 192 to 172 any server resolving the "myserver hostname" will alternately get 172.16.4.1 & 192.168.4.1 hence it will work intermittently!!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 12:54 AM
08-20-2001 12:54 AM
Re: name resolution
in fact I have a default getaway for each interface.
I can't use a alias for the second interface, so I think I will have some problem with the resolution of the name.
What do you think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 02:16 AM
08-20-2001 02:16 AM
Re: name resolution
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2001 09:52 AM
08-20-2001 09:52 AM