Link to home
Start Free TrialLog in
Avatar of nukevet
nukevet

asked on

DHCP assigned by WinNT, but no internet access?

I was able to get my Sunblade running Solaris 9 to "see" our DHCP server.  I can ping the DNS server just fine, and am able to telnet other machines on the LAN.  However, I can't get access to the "outside" using Netscape - I just get a message that Netscape cand find the server www.fillintheblank.com

The Sunblade is assigned an IP address by the DHCP server, but the computer itself is named "unknown".  I know this is an issue that has been responded to before, and I have printed out a couple of solutions to try for that.  My problem now is - why can't Netscape "see" the outside world if the machine has been assigned an IP address and if it can successfully ping the DNS server?

Thanks for the assists,

Neal
Avatar of jwelter
jwelter
Flag of United States of America image

Is there a defaultrouter file in /etc?  This file would contain the IP address of your gateway.

JW

Avatar of nukevet
nukevet

ASKER

Yes, there is a /etc/defaultrouter

This file contains

#primary gateway
aaa.bbb.ccc.ddd (this is the correct default gateway for the NT machines.

I should have pointed out that this is the only Unix workstation on an NT network - the DHCP server is an NT machine.
Is there a resolv.conf in the /etc directory with your nameserver in it?  I'm not at work right now, to reference one of my own to give you the exact syntax.  It's something like:

nameserver  dns_server_IP
domain your_domain.com

JW
Avatar of nukevet

ASKER

JW,

There is a resolv.conf file in /etc

the domain and nameserver are defined.  The domain is the one used by the vetschool, and it is just SVM (no .com)

When I reboot, the machine sees and configures the eri0 interface with no problems.  I do have a broken link in /etc/netmasks that I don't know how to fix - could this be the problem?

Thanks again for the input.  I wish there was someone here at the hospital that had some Unix experience - this is definitely NOT what I went to vet school for.
Hi,

The other thing to check is the /etc/resolv.conf file.

There should be a line that says something like:

hosts: files dns

The 'dns' isn't there by default, so it must be added.  

Regards, Nisus
http://www.omnimodo.com
Avatar of nukevet

ASKER

Hi, Nisus

I added the dns line to the hosts line in nsswith.conf - does this line need to be in the resolv.conf file as well?  I thought resolv.conf just contained the domain and nameserver arguments.


When the machine boots up, it sees the eri0 interface as primary, starts dhcp on it, an assigns the workstation an ip.  I just can't get Netscape to see anything on the outside.

sorry, I meant the /etc/nsswitch.conf file, it's after my bed-time!!!

Can you go the a site using the IP address, e.g. Netscape

http://64.12.151.211
Avatar of nukevet

ASKER

Getting to be after my bedtime, too!  I appreciate all of the help you have given, both on this problem and trying to get my computer to even work with the NT DHCP (the thought of Samba being the next step is enough to scare me greatly).

To answer your question, yes, I can access Netscape by entering the IP address instead of the name.  None of the images are loaded, and I con't follow any of the "named" links, but I can definitly get to the outside using this.

I'm hoping there's a reason you asked me this, like the next step is "well, then, do this simple thing and you are done!"

Thanks again.  I saw from your profile that you are in London, so it is very late for you.

Neal
Avatar of nukevet

ASKER

1 other point:  when I run nslookup I get the following error:

Can't find server name for address aaa.bbb.ccc.ddd.  No response from server
Default servers are not available

Neal
Avatar of nukevet

ASKER

OK, maybe solved by just trying every combination imaginable, or through sheer dumb luck.

When looking at the network details of one of my windows machines I saw 3 DNS servers listed.  I tried the other 2, and the 3rd one worked where the first 2 (including the "primary") did not.  Can I define all 3 nameservers in the resolv.conf file?

Neal
Avatar of nukevet

ASKER

OK, maybe solved by just trying every combination imaginable, or through sheer dumb luck.

When looking at the network details of one of my windows machines I saw 3 DNS servers listed.  I tried the other 2, and the 3rd one worked where the first 2 (including the "primary") did not.  Can I define all 3 nameservers in the resolv.conf file?

Neal
Apparently you can.  I wish I could tell you why the last works where the first two including your primary does not.  -Could be worth configuring a win box with everything BUT the one that works on your sun box, & see if they still work.

Happy Trails.

JW
ASKER CERTIFIED SOLUTION
Avatar of Nisus091197
Nisus091197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nukevet

ASKER

Nisus,

Yes, I can ping all 3 nameservers.  I will try what you suggested, and see what happens.

BTW, the clue to me figuring this out came from a post of yours to another thread - where you suggested using nslookup.  That's what clued me in to the fact that the primary nameserver I was using wasn't working (kept getting a "can't find default server" message).

Neal
Modify your resolv.conf like the following

domain svm
nameserver aaa.bbb.ccc.ddd
nameserver aaa.bbb.ccc.eee
nameserver aaa.bbb.ccc.fff
options timeout:2

The default timeout for switch-over to the next name server is 5 seconds, this will lower the switch-over to 2 seconds.

You should snoop your interface that is connected to your default router segment.

snoop -d hme0 (Or whatever your interface is, qfe0, le0)

After this ping www.yahoo.com or something else. You will see a DNS query addressed to the server and a few seconds later you will see a reply from the server. If the server does not have a response then you will see DNS queries for the second and then the third based on the timeout interval.

If the resolver makes it to the end of the list, then you need to verify that the servers you are using as name servers are really DNS servers and not wins servers.

when you do an nslookup you should get a response from the nameserver. The error you mentioned earlier is telling me that it is not a name server. Snooping will verify if the servers in your list are working name servers.

The following ip addresses are working name servers. See if you can ping them, then add them as your first and second name servers. If you cannot get a response from them then we can look in some other areas.

62.225.248.240
194.25.2.129