Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Routes and DNS

Status
Not open for further replies.

markharvey

Programmer
May 14, 2001
6
0
0
GB
Hi there, I have a sun e450 server running solaris 2.6 on my LAN we also have a DNS server and a 500kb kilostream line to the internet what i want to do is give the sun server access to the internet !!!
I presume you put a default route in the route table for the DNS server and the router but could someone give me a few examples of the command that is if i have that right if not could someone put me right

Thanks Mark
 
You can put the IP address of your default router in the file /etc/defaultrouter.

In general, to add the IP of the default router to the routing table, the command would be something like;

route add default <ip-address> 2

Look at the man page for the route command if your not sure. Personally, I use the /etc/defaultrouter file.

Greg.
 
Coupla other things to keep in mind.
routing is obviously important.
resolving can be just as critical. two other files you'll need to look
at are /etc/resolv.conf and /etc/nsswitch.conf. resolv.conf tells your
system what dns servers to use. most *basic* format is:

nameserver 111.222.333.444

nsswitch.conf tells your system *how* to resolve. in the
hosts entry, I usually have it like this:

hosts files dns

I assume you're not running nis(+), because if you are, then you
should just ask the guy in charge of it about this stuff.

i typically also put commonly-visited hosts in /etc/hosts. makes
lookups faster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top