Find the answer to your Linux question:
Results 1 to 5 of 5
I have set up a server (gateway) and have an DSL connection with dynamic IP and DNS updates from my ISP on eth0. I run DHCP service on the machine ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    10

    help with assigning DSL DNS to clients via DHCP

    I have set up a server (gateway) and have an DSL connection with dynamic IP and DNS updates from my ISP on eth0. I run DHCP service on the machine and give out IP addresses to the LAN (192.168.0.0/24), and default gateway (192.168.0.1) and DNS as well. These DNS i have are not so reliable and my Dsl ISP provides different one at each connection i make. My question, would it help if i set up a local dns server help? is there a way i can make the clients (on the LAN) to get current DNS from the server (192.168.0.1)'s /etc/resolv.conf when renewing or getting IP addresses.

    thanks again.
    Debian 3.1

  2. #2
    Linux Engineer d38dm8nw81k1ng's Avatar
    Join Date
    Mar 2005
    Location
    Newcastle
    Posts
    793
    not sure of how it's done exactly, but i think you'd need your gateway to receive the IP address dynamically, then set all the other ones to get that IP address. for the boxes on your LAN you'd set the DNS to the IP address of your gateway which would give them out. i don't know how to setup the gateway though.
    Here's why Linux is easier than Windows:
    Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
    Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?

  3. #3
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78
    The adsolute easiest way to do what you are trying to do is through hardware. I have the same set-up, but I am using an Aero14 Broadband Router (it runs linux). I purchased the router for about $20 off of newegg.com. The router has support for dyndns.com and will update each time your ip addy changes. You simply set it for dhcp. Each server can be individually configured for static or dhcp. It supports virtual hosting. All through an intuitive web interface. I assign each server to use the router for DNS. The router automatically picks up my isp's DNS.

    Hope this helps.

    also debian package ifplugd will allow hotplugging of the network. I installed it because my 3 year old will unhook all of my network cables if I turn my back for too long.
    On my setup my router gets my isp's DNS's and a dynamic IP addy, each machine on my network is configured thru dhcp to use 192.168.10.1 as a DNS, DHCP and Gateway

  4. #4
    Just Joined!
    Join Date
    Nov 2005
    Posts
    10

    Arrow just to set this clearly

    i think you'd need your gateway to receive the IP address dynamically
    this works fine on external interface (Dsl) i get both an IP a DNS automaticaly upon connection and this updates my /etc/resolv.conf

    for the boxes on your LAN you'd set the DNS to the IP address of your gateway which would give them out
    Do you mean i then install BIND ro similar? which bring me another Q what would i set my forwarders to? or do i leave them blank?

    The router has support for dyndns.com and will update each time your ip addy changes
    i have no need to update my IP i run ipcheck and that work fine.
    The router automatically picks up my isp's DNS.
    my server (gateway) does get an ip and uses the dyndns as well, but the issue i have is for clients on my LAN (192.168.0.0) network to get the DNS in my server's /etc/resolv.conf (which i get from my ISP upon connecting.

    I hope this clarifies the uncertain

  5. #5
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78
    do you have a full dhcp server setup on your gateway server?

    assuming you do have a dhcp server setup... debian package maradns is a recursive dns server. i believe thats what your looking for. install maradns on your gateway, then tell all your local machines to use your gateway as a dns. there is a lot more info on their website www.maradns.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •