Re: help setting a home network

From: Johann Koenig (explosive_at_att.net)
Date: 09/03/03


Date: Wed, 03 Sep 2003 03:04:03 GMT


On 1 Sep 2003 22:02:32 -0700
ittay@qlusters.com (Ittay Freiman) wrote:

> I have a computer setup as a gateway. It gets its external IP through
> dhcp from the cable company. It also gets IPs for DNS servers. I also
> have several computers set up as a private LAN. Each of them should
> also get the IPs for the DNS servers. There are several ways I know of
> for doing that, I like neither:
> 1. put the IPs statically in /etc/resolv.conf in each machine.
> 2. make the gateway be a dhcp server and configure it to give the IPs
> of the DNS. these IPs will also be written statically in the dhcp.conf
> file.
> 3. install a DNS server (or DNS caching server) in the gateway.
>
> All of these options mean that the DNS IPs are static, hard-coded in
> some configuration file. But since I get them dynamically from my ISP,
> I want to provide them dynamically to the machines in my LAN. How can
> I do that?

My /etc/resolv.conf:
jkoenig@note:~$ cat /etc/resolv.conf
nameserver 192.168.1.1
jkoenig@note:~$

I'm not sure how this would change if your router is a Linux box, not a
Linksys Router. Here is how I get nameserver in resolv.conf:
jkoenig@note:~$ cat /etc/network/interfaces
<snip comments and loopback interface>
auto eth0
iface eth0 inet static
        address 192.168.1.3
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
jkoenig@note:~$

I don't know if this works because the router does some sort of special
DNS, or because of the inherent action of 'nameserver.' I think it works
like thus:
note (my computer) sends request to router
router looks it up
router returns it to note

I'd test it by setting 'gateway' to another one of my computers and
trying some name resolution, but I'm pretty tired right now.

-- 
-johann koenig
Now Playing: Rancid - 1998 : Punk-O-Rama (Vol. 4)
Today is Setting Orange, the 26th day of Bureaucracy in the YOLD 3169
My public pgp key: http://mental-graffiti.com/pgp/johannkoenig.pgp




Relevant Pages

  • Re: Confusion, chaos and more!
    ... It appears that you have edited the actual IPs so it's hard to tell. ... DNS address it provides) to insure that only 192.168.36.21 is the DNS ... server at the remote network. ... simply set up the router to provide IPs from .21 to .40. ...
    (microsoft.public.windows.server.dns)
  • QUESTION: Configuring AD within a Home Network topology
    ... other computers using DHCP from the Linksys router. ... My big thing is wanting to know how to nail down DNS setup, DHCP, etc. ...
    (microsoft.public.win2000.setup_deployment)
  • Maintaining the ability to remote desktop after I move.
    ... Secondary DNS ... >if your router is using a dynamicIP then register it ... >allow you to vnc into the router. ... >>find a way to remain connected to their computers ...
    (microsoft.public.windowsxp.network_web)
  • Re: static IP addresses on LAN
    ... dynamically assigned IPs from the DHCP server. ... I need 6 of the computers to have a fixed static IP address. ... If I instead configure it to use DHCP, ... I would modify the settings of the Linsys router to ...
    (comp.sys.mac.system)
  • Re: Strange connection problem :-/
    ... You can put the IPs into the router as fixed addresses, ... >> to do another DNS lookup once they're connected. ... I've since moved to Plusnet and now use their DNS server IP from DHCP leases ...
    (uk.telecom.broadband)