Solaris 10 name resolution question


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 name resolution question
# 1  
Old 11-13-2008
Solaris 10 name resolution question

As you can see by the following text, we have a multi-homed host defined in our network:

bash-2.05# nslookup ldaptest
Server: usat0x40.atd.gmeds.com
Address: 10.1.14.14

Name: ldaptest.atd.gmeds.com
Addresses: 10.1.16.142, 10.1.16.141

I turned off nscd (didn't think I needed to) ... then tried to ping ldaptest when the server at 10.1.16.142 was offline. I thought Solaris 10 would handle this (even our old VMS system can handle this) by doing a round robin sort of thing to alternate the working ip address with the failing one. Actually, baseed on some reading I thought Solaris 10 would perform some functionality test on its own and choose the working ip address every time. Instead it seems to choose the failed ip address every time. Can anyone explain why this doesn't work as expected?

bash-2.05# /etc/init.d/nscd stop
bash-2.05# ping ldaptest
^C
bash-2.05# ping ldaptest
^C
bash-2.05# ping ldaptest
^C

Thanks!
Martin Meadows
Indianapolis, Indiana
# 2  
Old 11-14-2008
nsswitch.conf

Do you have "dns" option for "hosts" entry into /etc/nsswitch.conf file? Sample line into my machine is as below
... ... ...
hosts: files dns
... ... ...
# 3  
Old 11-14-2008
please post the output of "ifconfig -a".
# 4  
Old 11-14-2008
You do need to stop nscd. Else, by default, ping will connect to the same host for an hour (regardless of TTL).

DNS round robin is, for lack of a better description, poor mans load balancing. It will not protect you from a host failure.

It would be better to do a `ping -s ldaptest`. That way when you ^C, it'll tell you what IP it's trying to hit. Also, wait at least 5 seconds between pings, and attempt it at least 10 times. That should give you enough host queries to flip between the two IPs.

Last edited by Diabolist; 11-14-2008 at 04:05 AM.. Reason: Misread quote
# 5  
Old 11-17-2008
Sumitpandya:
hosts: files nis [SUCCESS=continue] dns
# 6  
Old 11-17-2008
dukenuke2:
/ > ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.1.1.12 netmask ffffff00 broadcast 10.1.1.255
ether 0:3:ba:0:e5:5d
eri0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.1.1.21 netmask ffffff00 broadcast 10.1.1.255

Diabolist:
nscd was off.
I followed your advice and used -s. I waited 5 seconds between attempts and did, in fact, see it switch to the other ip address on the 3rd attempt.

Thanks!

Last edited by DukeNuke2; 11-17-2008 at 09:20 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Changing dpi screen resolution in Solaris 10.

Hi, everyone! I would like to try OpenStep for Solaris on my Sun Ultra 10 machine, so I installed all required packages, the problem is that OpenStep requires screen DPI to be set to 72x72 while my current dpi is 90x90. So how do I change the dpi? Thank you! (0 Replies)
Discussion started by: nongrato
0 Replies

2. Solaris

Question with Solaris Crash Analysis Tool with Solaris 9

Hello all. I am new hear and would like to ask a question regarding to the Solaris Crash Analysis Tool. We are analyzing the results of "thread summary" but not quite sure what the asterisk represents. Following are the items that asterisk were attached. 50* threads sleeping on a semaphore (49... (1 Reply)
Discussion started by: YuW
1 Replies

3. Solaris

A Solaris Question

hi.. I have a question because there are files on Solaris and will not let me change the root user is the owner. excuse is that I come from a Linux environment and I like to learn Solaris thank (5 Replies)
Discussion started by: cejodrake
5 Replies

4. Solaris

Screen Resolution problem on Ultra 10 with Solaris 10

Hi, I have a Sun Ultra 10 (SPARC) with Solaris 10 installed. The screen resolution is very poor and grainy which I have been unable to rectify. Every time I try to set the resolution I get the following: 'The XServer does not support the XRandR extension. Runtime resolution changes to the... (5 Replies)
Discussion started by: patcom
5 Replies

5. Solaris

screen resolution

how to change screen resolution in CDE prompt (2 Replies)
Discussion started by: tirupathi
2 Replies

6. IP Networking

Name Resolution between Solaris and Windows

Hello. I have been working on an issue I hope someone can help me out with. I have a small network with an NT4 Server, 15 Win2K PC, and four Unix workstations. I am having problems resolving the name of one of the workstations from the server and PC's. I am attacking this issue from both... (4 Replies)
Discussion started by: medmonson
4 Replies

7. Solaris

Someone's got to know... Screen resolution question.

Hi all, Someone please help, I have a machine running Sun Solaris 5.8. X used to run fine, not it can't start. (possible user intervention) It looks to be trying to run at 1280x1024. I don't think the hardware will support it, it seems high. Anyways, how from the commandline, via ssh, can I... (4 Replies)
Discussion started by: komputersman
4 Replies

8. UNIX for Advanced & Expert Users

Solaris 10 Desktop resolution

I have a problem with solaris 10 desktop resolution. My resolution is 1680x1050. I want to boot in troubleshooting mode to change this resolution for the root user. Or all users. What is the configuration script. ex: .dtconfig/Xconfig (3 Replies)
Discussion started by: simquest
3 Replies

9. UNIX Desktop Questions & Answers

Resolution..??

When i start my pc after the installation of suse linux it ask me for resolution but not for graphical interface, for console, can i run a command to change it again? Thanx! (3 Replies)
Discussion started by: Linux_fan
3 Replies

10. UNIX for Dummies Questions & Answers

Solaris 2.6 question

How do I define a default gateway on a Solaris 2.6 Server. (2 Replies)
Discussion started by: jskillet
2 Replies
Login or Register to Ask a Question