Chat with us, powered by LiveChat
Setting up Nameserver / DNS in Windows Server

Setting up Nameserver / DNS in Windows Server

First, bind the IP to your Server. Do this in Start > Control Panel > Network Connections > Local Area Network > Properties > TCP/IP > Properties > Advanced

It seems long, but it’s not. Then add the additional IP there.
Okay, now open the DNS MMC snap-in. Create a new primary zone, and have it be for domain.com the same domain that your NS records are for.
Then do the following:
Create:

A ns1 x.x.x.x

A ns2 y.y.y.y

A www x.x.x.x

A mail x.x.x.x

MX mail x.x.x.x, 10
Then DELETE the records of type NS¦ And replace them with:

ns1.domain.com

ns2.domain.com
That should do it. Open a cmd prompt on your Server, and:
nslookup

server localhost

www.domain.com
Then it should read off your IP¦ If it does, everything looks good so far.
Now open a cmd prompt on your local box, and:
nslookup

www.domain.com
If everything comes out okay, then you’re all setup. If it doesn’t come back, then try this (still within nslookup):
server x.x.x.x

www.domain.com
If that comes back, then the problem lies in your NS records at the registrar, or the registrars NS records for the domain.
Remember, setting a domain to point to your nameserver is NOT enough, you must also create NS records at the registrar

Problem
When I did nslookup and typed localhost it didn’t recognize it (I had to type 127.0.0.1). And also, when I didnt specify the server it used as default nsx.hostings_nameserver.net, shouldnt it have used one of my nameservers? I then tried with server nsx.mydomain.com and it worked.
workaround
it’s using nsx.hostings_nameserver.net because that’s the default its set to use when the server company binds IPs to your box¦
You can change that by going to:
Start > Control Panel > Network Connections > Local Area Network > Properties > TCP/IP > Properties
Use the following DNS server addresses:

127.0.0.1
Because it’s your local box, use the loopback IP to speed things up¦ Also, you don’t need a secondary (alternate) server just the one loopback.

Sharing

Leave your comment

Pin It on Pinterest

Share This