Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

This question already has an answer here:

There are several questions similar to what I'm trying to do here, but I can't find any that actually answer the question. Feel free to just link me if you find one.

I need to set the hostname of a Windows 7 machine. In Linux, it's a simple


But on Windows, I can't figure out how to set my hostname to this without having an actual domain set up called

Is it possible to do this? I have a DNS domain called but it is not a Windows active directory domain, so when I try to set it in the Network ID menu in sysdm.cpl, it doesn't recognize the domain and fails to connect.

Is there a simple way to do this in Windows?

share|improve this question

marked as duplicate by Peter Mortensen, DavidPostill, Kevin Panko, Matthew Williams, Raystafarian Dec 8 '14 at 12:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

If you are connected to a wireless router or devices that hands out IP addresses some do tend to set a domain or hostname as .local - go into the router settings (if you have access to it) and see if there are any options to change the domain. – tombull89 Mar 8 '12 at 14:36
" when I try to set it in the Network ID menu in" sounds like that sentence is incomplete. – Oliver Salzburg Mar 8 '12 at 14:44
up vote 6 down vote accepted

The hostname is just that: a hostname. It is never supposed to have more than one component within it. The FQDN can be determined by appending the configured DNS domain, according to resolv.conf.

sysdm.cpl → Computer Name → Change → More... has a "Primary DNS suffix" option, which might be helpful here.

Additionally, in Windows networks, you're facing the issue that Microsoft uses the term domain also to describe part of their Windows ecosystem. Namely, the Windows domain.
Interestingly though, the Windows domain will also provide the Domain name for all hosts on the Windows network.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .