Internal DNS for windows network and script to update HOSTS file?

I would like to setup an internal DNS server on our main fileserver running Windows 2008 server to allow all users internally to be able to view websites in development via hostheaders. The only issue is we dot not use active directory or use a workgroup/domain. User are set permissions manually on drives and servers they need access to.

What I would like to know is, if this is possible with BIND in my network setup and how would I distribute the internal dns settings to users seeing as a domain is not used?

Alternatively is there some sort of script I could setup on the server that runs for each user when they log on to their local pc that updates their HOSTS file wih the internal hostheaders/dns ?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Em ManCommented:
Do you have a DHCP?
Em ManCommented:
Where is the BIND Located? Internal? External? DMZ?
Bruno PACIIT ConsultantCommented:

You can install the DNS service on a Windows Server even if you don't have a domain.

I'm not sure to have understood your current situation. I suppose you don't have any DNS service yet (???). So you surrently only use HOSTS files on your computers !?

If you already have a DNS server that is interrogated by yoru computers you don't need another DNS server, you can use the one you have and add DNS records in it.
If you don't have DNS server yet then you can install this service on any Windows server. You then have to modify IP settings on each computer to add the IP address of the DNS server so that your computers interrrogate the DNS service.
Finally, you should know that is a HOST file exists on a computer the computer will primarily use datas in the HOST file instead of interrogate DNS server. So if your HOSTS file contains bad informations you should fix this or simply delete hosts files and put all necessary DNS informations in the DNS zone on the DNS server.

To be able to change IP settings of his computer a user must be member of "Administrators" local group of the computer. So if your users are not administrators of their own computer you can not give them a script to automatically fix IP settings.
If your computers are not in a domain there is not centralized login script system and then you have no way to remotly deploy a script on these computers.

Finally, if you install a DNS server, it's then better to prohibit use of local HOSTS files. I mean that as soon as you have a centralized name resolution service (as DNS server) you can make things so that you don't need HOSTS files anymore and it's really better to avoid using them.
So don't search a way to automatically update HOSTS files if you have a DNS server. Instead, make your changes in the DNS zone and delete HOSTS files on computers to ensure that computers will use DNS server informations.

HAve a good day.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SolarWinds® IP Control Bundle (IPCB)

Combines SolarWinds IP Address Manager and User Device Tracker to help detect IP conflicts, quickly identify affected systems, and help your team take near instantaneous action. Help improve visibility and enhance reliability with SolarWinds IP Control Bundle.

swgdesignAuthor Commented:
We use DHCP throughout our network and do NOT have any local DNS service setup, yet.

Say we installed BIND and setup the switch that controls dhcp to set an internal server as a dns server, will it interrogate the internal dns first or is that something we would have to specify?
Bruno PACIIT ConsultantCommented:

Windows computers will always use HOSTS file informations at first, and interrogate DNS only if HOSTS file doesn't contains the requested information.
That's why I told you it's better to get rid of HOSTS files if you have a DNS server. It's better to add any necessary DNS record in the DNS zone instead using HOSTS files.

Have a nice day.
swgdesignAuthor Commented:
Yes, that's what I plan on doing once the DNS is setup internally. We will no longer use hosts files to control internal website dns. :)

Thanks for all the comments.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.