Results 1 to 3 of 3

Thread: DHCP server - Is a domain name required?

  1. #1
    Join Date
    Sep 2006
    Location
    Florida
    Beans
    187
    Distro
    Ubuntu

    Question DHCP server - Is a domain name required?

    Hello, as the title says, when setting up a DHCP server is it required to specify a domain name?

    I'm planning to setup a DHCP server for a home network (for funsies), and I don't really have a domain name; although if I have to I could use home.local or something.
    Never let a computer know you’re in a hurry.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DHCP server - Is a domain name required?

    I have always used .local for any local machines at home.

    While it isn't really required, it is a good thing to have if you set up a local DNS server.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,630
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: DHCP server - Is a domain name required?

    I agree that having a domain is helpful, but the answer to your original question is no. DHCP listens on the broadcast address for any packets that come by requesting an IP. You can distribute various DNS parameters in the reply, like the IP addresses for DNS servers, or the search domain list, but these are all optional. Here's my dhcpd.conf file:

    Code:
    ddns-update-style interim;
    ignore client-updates;
    
    subnet 192.168.100.0 netmask 255.255.255.0 {
    
            range 192.168.100.50 192.168.100.99;
    
            option routers              192.168.100.1;
            option subnet-mask          255.255.255.0;
    
            option domain-name             "example.com";
            option domain-name-servers      192.168.100.100, 8.8.8.8, 8.8.4.4;
    
            option time-offset              -18000; # Eastern Standard Time
            option ntp-servers              192.168.100.100;
            option netbios-name-servers     192.168.100.100;
    
    }
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

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