Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Windows Server 2012 as a DNS and a DHCP server. Now, when a client connects he gets wrong DNS servers from the DHCP server. Not sure where these came from but I'd like to give the clients the server's IP as DNS servers address.

I've set it up once in the past in Server 2008 but I can't remember now where I set the DNS server address in DHCP.

So... where can I change the addresses?

share|improve this question

It's not the likeliest explanation, but have you checked to make sure that the clients are getting DHCP leases from the DHCP server you expect, and not from another (rogue) server on your network?

The first place to look would clearly be the configuration on the server, but If you've checked the configuration and it seems to be correct but the client is still accepting a lease that doesn't look like what you think you are sending, it is a possibility.

Sometimes it helps to break out the sniffer software and see what's actually coming and going across the wire, and from whom. You can at least take a look at what the server is sending out in its DHCPOFFER and any decent sniffer software will dissect the packets for you and show you the option values being sent with the lease offer.

share|improve this answer
A Windows machine will tell you what DHCP server it received its config from, via "ipconfig /all" - no need to even break out Wireshark – mfinni Jan 27 '13 at 22:25
ipconfig says that the DHCP server is correct. The client has also got a correct static IP from the server. (By the way, there's no client side setting of DNS) – MikkoP Jan 28 '13 at 13:50
That being the case, I would suggest you look in the lease packet to see what options are actually being sent with the offer, and what values the option fields contain. – Michael McNally Jan 28 '13 at 18:42

In the DHCP Scope options add option 6 - DNS Servers and add the appropriate DNS server(s).

share|improve this answer
Tried that but I didn't get it working. I restarted the server, modem (DNS is set to in the modem which is the server) and the client (also tried ipconfig /release and /renew) but it didn't do anything. ipconfig on the server says as a name server. In DHCP the option 6 is set to The forwarders in DNS server are set to and ipconfig on clients get those Google DNS servers. What's wrong? – MikkoP Jan 27 '13 at 19:15

As mentioned, the official way is to set a forwarder up that points unknown DNS requests to an outside server, but I found it also worked by ignoring that and setting an external DNS server in the network settings for your LAN connection, just as you would any normal PC.

It seems that in the absence of other info, Server 2012 pushes that setting as the one it gives to machine using DHCP. Is that configured correctly?

share|improve this answer

Your Answer


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.