Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    dhcpd/dns - clients cant' resolve

    Hello everybody,

    I have what is probably a pretty simple problem, I understand what the problem is, but am unsure as to the best way to resolve it.

    My goal:

    I have a CentOS server with two NICs, one gets internet connection, the other hands out DHCP - so I want my server to effectively act as a router (like a DLINK or Linksys that one might use in their home).

    My current setup:

    Comcast modem --> router (handing out addresses, on subnet via DHCP) --> CentOS server (and other clients) [also hands out addresses on subnet via DHCP] --> other clients

    My setup after I get all of this worked out:

    Comcast modem --> CentOS server (handing out addresses on subnet via DHCP --> all other clients

    My problem is that, in my current setup, the terminal clients, that is the ones at the very end of the chain, are unable to connect to the internet, they receive addresses from dhcpd running on the CentOS server just fine, they just can't see the outside world.

    The obvious problem is that I have the CentOS server as the DNS server for clients, and the CentOS has no name server running on it and I need to have one running on it. I don't need the name server to be authoritative for any domains (well, in the future it will be, as I want to run my own DNS), I just need it to be able to execute lookup queries and return addresses to the terminal clients. So how can I most easily do this? Would this be setting up BIND in "caching mode"?

    I have noticed that my Airport Extreme is listening on port 53, so it has to be doing something similar to what I am needing.

    Would somebody mind pointing me in the right direction? I would be eternally grateful!

    Here's my dhcpd.conf, just for fun:

    ddns-update-style interim;
    log-facility local7;
    default-lease-time 600;
    max-lease-time 7200;
    option subnet-mask;
    option broadcast-address;
    option routers;
    option domain-name-servers;
    option domain-name "mydomain";  <--I do have this filled in with the FQDN of my server
    subnet netmask {
    Thank you very much!

  2. #2
    Linux Enthusiast
    Join Date
    Dec 2011
    Turtle Island West
    I'm no network guru, but ...
    Wouldn't you set the DNS servers on the Centos server to the same ones that the modem uses?

Posting Permissions

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