Computing.Net > Forums > Solaris > Solaris8 (intel) and DNS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Solaris8 (intel) and DNS

Reply to Message Icon

Name: Honkster
Date: May 11, 2002 at 17:04:40 Pacific
Comment:

I have 4 pc's connected to a netgear router. Each has been assigned a static ip. The routers wan port connects to a cable modem and gets its IP by DHCP and its lan port is 192.168.0.1. In windows, all I have to do is give it the default gateway address of 192.168.0.1 and DNS to the outside world is fine. In linux (Redhat) its the same...but I will be buggered if I can get Solaris 8 to work.
I have edited the /etc/hosts file so internal name resolution works, but it's be nice to be able to ping the outside world from within Solaris.

Any tips please? Oh, I am hopeless when it comes to Solaris, so please be very specific if you would like to help.

Many thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: ===
Date: May 11, 2002 at 19:36:11 Pacific
Reply:

You wrote about /etc/hosts file. Did you make proper changes in these files –

/etc/nsswitch.conf
/etc/resolv.conf
/etc/defaultrouter

If router has built-in DHCP Server you need to touch /etc/dhcp.interface too.


0

Response Number 2
Name: Honkster
Date: May 12, 2002 at 03:53:06 Pacific
Reply:

I must admin I haven't...

do these files require the same format as the hosts file...?

ie. 192.168.0.1 hostxyz

The router does have DHCP, but its disabled. When I set up the solaris8 box I gave it a static IP 192.168.0.x. I ran the route add default 192.168.0.1 and that was fine...it just won't talk to anything outside my little network.


0

Response Number 3
Name: PaulS
Date: May 12, 2002 at 07:40:04 Pacific
Reply:

No, they don't have the same format as the /etc/inet/hosts file. You can read the man pages to get the details, but just to summarize:

/etc/defaultrouter should contain the IP address of your router box. That will reinstall your default route when the system is rebooted.

/etc/resolv.conf should contain a list of dns servers to consult. Do a man on resolv.conf.

/etc/nsswitch.conf is your name service switch configuration file. It provides a lookup order for resoving information (like IP address hostname resolution). I suspect you will just copy the /etc/nsswitch.file file on top of /etc/nsswitch.conf and add dns in the lookup order after the file for the host entry.
host files dns


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


solaris broke my hdd, resolv.conf doesnot exist



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Solaris8 (intel) and DNS

DNS Setup in Solaris8 intel www.computing.net/answers/solaris/dns-setup-in-solaris8-intel/2611.html

Disk space on Solaris8(intel) www.computing.net/answers/solaris/disk-space-on-solaris8intel/2366.html

DHCP and DNS Client in an NT4 network www.computing.net/answers/solaris/dhcp-and-dns-client-in-an-nt4-network/875.html