View Single Post
  #7   (View Single Post)  
Old 3rd August 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 775
Default

Quote:
Originally Posted by ahlsner View Post
I've forgot :
I must configure resolve.conf (or host) by writing DNS 192.168.2.1, the gateway.
So, I willa accass to Internet.
What do your think?
Glad to hear it's working better.

Yes you will need to put at least one, and up to three, nameserver IPs into /etc/resolv.conf. For other useful parameters that can be put in this file, see resolv.conf(5). Also take note of the "hosts:" line in /etc/nsswitch.conf, which determines whether DNS is consulted before or after looking at /etc/hosts.

As for gateways, you'll have to make sure the routing is set up right on all relevant machines. See route(5).
Reply With Quote