Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server in a network receiving all its network information from DHCP. The problem is that the ntp-server being sent is not set to UTC. I want to use the configuration for ntp found in /etc/ntp.conf but the DHCP information takes precedence. How can I force ntpd to use the configuration in /etc/ntp.conf as opposed to the one sent by DHCP? What is the Debian way to do this?

share|improve this question
    
What ntp daemon are you using? What is the current contents of your ntp.conf? Is the ntpdate package installed? What DHCP client are you using? What version of Debian? –  Zoredache Nov 10 '11 at 4:09
1  
1. Sever on DHCP 2. NTP server is not "set" to UTC o_O –  Chris S Nov 10 '11 at 4:57
    
Debian squeeze, default ntp.conf (the one that comes after aptitude install ntp) –  rmarimon Nov 10 '11 at 20:35

1 Answer 1

up vote 1 down vote accepted

I suggest you edit/create /etc/dhclient.conf and uncomment the line "request" with something like this:

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

Especially, if "ntp-servers" is present, remove it. Under some distribution ( aka Fedora ) it is sent by default, so you have to put this line explicitely so that the default is overriden.

Check man dhclient.conf for extended informations.

share|improve this answer
    
This worked perfectly... is there something that one can do in debian that goes more along the lines of /etc/default... –  rmarimon Nov 10 '11 at 20:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.