Results 1 to 3 of 3

Thread: dhcp and ntp

  1. #1
    Join Date
    May 2008
    Beans
    20

    dhcp and ntp

    Hi there,

    I have an Ubuntu box, using a win2003 dhcp, and ntpd, with ntp servers configured statically in /etc/ntp.conf.

    I would like to know, if Ubuntu could use the ntp servers dynamically assigned by DHCP, instead of the statically configured ones. I have been searching a way, but I couldn't find one.

    Do you know a way?. Maybe I have to discard using ntpd?

    Thanks very much,

    tizo
    Last edited by tizo_rh; June 27th, 2008 at 04:47 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: dhcp and ntp

    You aren't confusing NTP, or network time protocol, servers with DNS, or domain name system, servers, are you? As far as I know, DHCP gives you an IP address and DNS information and has nothing to say about NTP.

    Unless you have done some serious configuration within the depths of your Ubuntu box, it will automagically use the DNS servers offered by the DHCP server.
    Last edited by chili555; June 27th, 2008 at 05:20 PM.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    May 2008
    Beans
    20

    Re: dhcp and ntp

    chili555, thanks for your reply.

    I am not confusing NTP with DNS. DNS servers works perfectly, but DHCP can also be configured to give NTP server address. The DHCP client can be configured to take these servers into account, or not. As an example, my /etc/dhcp3/dhclient.conf file, looks like the following:

    request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, ntp-servers;


    Note that one of the parameters is "ntp-servers".

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
  •