?
Solved

Unix DNS resolution (Solaris)

Posted on 2000-05-03
13
Medium Priority
?
581 Views
Last Modified: 2013-12-21
We have an application runnng on SUN Solaris.  Some users connect to the network via a dial up connection.  These users (running Win95 desktops) are dynamically assigned an IP address when they log on.  The network is NT.  Form UNIX, pinging the user PC is possible the first time they log on.  If they log off and log on again they are assigned a new IP.  Form UNIX pinging the PC machine now no longer works.  DNS is configured, and the DNS server has the correct (new) IP address.
UNIX is looking somewhere else (other than DNS) for the IP address resolution.  Where/how is this done?
0
Comment
Question by:pibbotson
  • 4
  • 3
  • 2
  • +4
13 Comments
 
LVL 15

Expert Comment

by:samri
ID: 2777496
pibbotson,

   What are your dial-up user dialing into?  I mean what terminal server you are  using?  It seems that you are using DHCP (of some kind) to assign dynamic IP to your user.  Check the DHCP server (if you use one), on the default gateway (router), and the netmask.

    I believe that you ought to check on the client setup.  Another thing to look into is the routing on the terminal server.  Does it has proper routing configured?
  When your user dial-in, check the gateway on the client PC (the dialling machine), what is the gateway.  Perhaps, posting the "NETSTAT -RN" output from the client, before and after the established connection would help us a bit.

Waiting.

Samri
0
 
LVL 2

Expert Comment

by:jonke
ID: 2777768
Places the machine will look for an ip-hostname resolution is dependent on a file called /etc/nsswitch.conf

Look for a line like this:

hosts:     nisplus dns [NOTFOUND=return] files

Say you wanted your machine to do a dns lookup first, then you would put this first in line.
0
 

Expert Comment

by:CASIOFL
ID: 2778258
I have not set up DHCP/DDNS on our server yet, but I will soon. Something to also think about is DNS caching. Maybe the unix DNS server is caching the first Ip assigned, and while DDNS is assigning a new Ip every time, all name to IP resolution requests are being given the first IP. I will look into turning off DNS caching Completely off.  I think you can do this by setting the time to live option to 0. Thus, forcing the DNS daemon to read the tables in order to provide an answer.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 2

Expert Comment

by:jonke
ID: 2778387
A quick way to find out if you are caching the old ip address is do an nslookup hostname. The result will show you what the DNS server gets from a dns lookup against that hostname.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 2778732
Yes the data is being cache'd by the nscd daemon on Solaris. If you look at the man page for nscd & nscd.conf you'll find what you need to modify it's behaviour. Typically nscd caches hosts data for 3600 seconds and in your cse you might want to reduce that significantly. I've seen some folks recomend disabling nscd entirely, but I suspect it's probably better to just reduce the cache time.
0
 

Expert Comment

by:BrianMayo
ID: 2780647
Let me try to sum what was facts we have:
You have users that dial into your network and are given an IP address from a DHCP server.   Now, from the UNIX server, you wish to ping a user's PC, I am assuming by name.

To begin with, your network must have at least a primary DNS server.  This DNS server would have to have static entries in it for each ip address mapping it to a name.
Next, the UNIX server must point to this DNS server which is done through the file /etc/resolv.conf
Next, we need to check the /etc/nsswitch.conf to see the order in which the UNIX server tries name service files.  

Assuming the previous items are in order, I do not see any issue.
The user PC dials into your network and is given an IP address from the DHCP server.  Your DNS server, which is separate from the DHCP server should have name-to-ip address translations for all addresses.  Thus, if a user dials in, hangs up, then dials in again, you would need to know the new IP address the user was assigned to know what name the IP address has.  Once you know this, from the UNIX system, you can ping with that name.

Regards,
-Brian
0
 

Author Comment

by:pibbotson
ID: 2787070
jlevie's answer is the one I was after.

Thanks anyway - Paul.
0
 

Author Comment

by:pibbotson
ID: 2787085
Spot on.

Thanks Paul.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2787090
Would you like for me to "propose an answer" or do you want to just select the comment as the answer?
0
 

Author Comment

by:pibbotson
ID: 2787094
I have selected the comment as the answer.

0
 
LVL 40

Expert Comment

by:jlevie
ID: 2787123
Obviously, thank you very much.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2787126
Obviously, thank you very much.
0
 

Expert Comment

by:bspb_sks
ID: 5844644
Hi,

Do let me know how to configure DNS on Sun Solaris 2.7 server and the sites from where I can get the complete details.

Waiting for response...

Sanjay
India
Sun Solaris
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question