Jump to content

Recommended Posts

Posted

Hi folks,

 

I'm trying to use NSLOOKUP on our Windows network to identify some PCs reported in our web filtering system (they're only reported by IP address) but it's not working - I get a "dnsserver.domain.local can't find X.X.X.X: Non-existent domain". (DNS server names and IP addresses have been changed to protect the innocent)

 

There are relevant reverse lookup zones for the ranges in question on the DNS server, although at my level of knowledge I'm not sure if they have been setup correctly.

 

As background my TCP/IP and DNS knowledge isn't great, but I know a bit at least.

 

Anyone know where to start troubleshooting?

 

TIA

Posted (edited)

This smells like a DNS suffix problem.

 

Try NSLOOKUP interaactively.

 

From a command line

 

NSLOOKUP

 

See what is says about the Default Server.

Make sure there are no errors at this point.

 

Now type

SET DEBUG

and then type BBC.CO.UK to check.

See if there are any errors.

 

Now try typing in a name of one of your servers, see what happens. Try it with the FQDN suffix and without.

 

You can test the reverse-lookup resolution by typing in the IP address in the interactive session.

Edited by jinnantonnixx
  • Thanks 1
Posted

Typing NSLOOKUP returns the DNS server, so that part seems ok.

 

Typing bbc.co.uk returns bbc.co.uk with the domain suffix attached, and it fails to identify it.

 

Typing in a FQ server name returns its IP address (along with other data).

 

Typing in the IP address of said server then returns information about that, pretty much as per via its server name.

 

Typing in the FQ name of a client PC returns its IP address (along with other data).

 

Typing in the IP address of this client PC returns some data, but at the end of this I again get the "can't find" error with "Non-existent domain".

 

So a problem with client PCs it seems. The client PCs are on DHCP, whereas the servers are using static addresses. Could this be related? Although an IPCONFIG /ALL for the client PC shows the correct IP address for the DNS server.

Posted
In your DHCP settings, properties of the server, DNS tab, are DNS dynamic updates enable and always allowed for DNS A and PTR records? FWIW I have all three checkboxes filled for my settings.
  • Thanks 1
Posted
Typing in the IP address of this client PC returns some data, but at the end of this I again get the "can't find" error with "Non-existent domain".

That means that there's no reverse record (PTR) for that particular computer.

 

I suggest that your DHCP is not creating PTR records for its clients.

  • Thanks 1
Posted

I can only see relevant property pages for the actual scope, but I assume that's OK? (it's a 2008 R2 server)

 

Under the DNS tab the following options are selected:

 

- Dynamically update DNS A and PTR records only if requested by the DHCP clients.

- Discard A and PTR records when lease is deleted.

 

The following aren't selected:

 

- Always dynamically update DNS A and PTR records.

- Dynamically update DNS A and PTR records for DHCP clients that do not request updates (for example, clients running Windows NT 4.0).

 

FWIW the affected clients are Win 7, as are most PCs here.

 

Should I select the two that aren't selected? Could it cause anything to "go bang"?

Posted

Yeah give it a go, it won't make anything go wrong, and as far as I know it's not a security risk either - it certainly sounds like the PTR records are the problem, and if the issue is specific to DHCP clients, it seems a pretty good guess for the cause of the problem.

 

I can set the DNS on the server and on the scope, but if you only have one scope on a server anyway, it won't matter where you set it. I imagine scope would override server settings so may as well set it there.

  • Thanks 1
Posted
Ta. Will do it and advise if things go bang :D

 

You might have to renew the DHCP lease to test if it's fixed - find a machine that you can replicate the problem on now, run ipconfig /renew at the command prompt on that machine, and then test again. If it works, the entire problem should then be fixed in 4 days, assuming a default configuration on your DHCP scope and no other problems prevent updates at the 50% mark of the lease.

  • Thanks 1
Posted (edited)

One thing I notice that keeps getting missed is the need to setup a reverse dns zone for a new subnet. Are the clients on a different subnet to the servers? Is there a reverse zone setup for it? I will edit this post in a minute and add an image of my test dns setup so you can see what I mean.

 

DNS Reverse Zone.JPG

 

You need one of these reverse zones for each relevant subnet, and this is where the pointer records are stored. I only have one for this test environment, but a production environment will have more. As the ptr records for the servers exist and the clients don't then if the subnets are different, this could be causing the problem

 

HTH

 

Jonathan

Edited by ArchersIT
Added Image, and then clarified text
  • Thanks 1
Posted
There are two reverse zones, although it looks like we require a third for another subnet. Certainly PCs I was running NSLOOKUP on were within the subnets already setup.
Posted

Hmmm - can you do some screenshots or text file copies of what you are seeing when you run your NSLOOKUP and IPCONFIG commands? I know some people are worried about names and IP addresses, so please feel free to edit if you need to. I would investgate the following (with results from my test network)

 

C:\Users\jonathan>nslookup
Default Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

 

Any timeouts or failed lookups here should be investigated

 

Then type in the name of the machine (FQDN if the DNS suffixes are not in place)

> jon-win8
Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

Name:    jon-win8.jonathan.local
Address:  192.168.101.17

 

The first line shows you the dns server resolving it and the second the resolved name

 

You should then be able to put in the IP address as follows:

> 192.168.101.17
Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

Name:    jon-win8.jonathan.local
Address:  192.168.101.17

 

If you do not have a reverse DNS zone setup, then you get the following (note the change to the IP address I am looking up)

 

> 192.168.10.17
Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

*** jon-dc01.jonathan.local can't find 192.168.10.17: Non-existent domain

 

But you will also get this message if the DNS zone is setup but the IP address is not registered. To help with deciding this, I would turn debug mode on so you can see where the response is coming from:

 

> set debug

 

If there is no reverse DNS zone then it will look as follows

 

> 192.168.10.17
Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

------------
Got answer:
   HEADER:
       opcode = QUERY, id = 7, rcode = NXDOMAIN
       header flags:  response, want recursion, recursion avail.
       questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
       17.10.168.192.in-addr.arpa, type = PTR, class = IN
   AUTHORITY RECORDS:
   ->  168.192.in-addr.arpa
       ttl = 749 (12 mins 29 secs)
       primary name server = prisoner.iana.org
       responsible mail addr = hostmaster.root-servers.org
       serial  = 1
       refresh = 604800 (7 days)
       retry   = 60 (1 min)
       expire  = 604800 (7 days)
       default TTL = 604800 (7 days)

------------
*** jon-dc01.jonathan.local can't find 192.168.10.17: Non-existent domain

 

As you can see, it has looked out onto the internet in an attempt to resolve it. If the DNS record is just not being registered, you will see the following:

 

> 192.168.101.99
Server:  jon-dc01.jonathan.local
Address:  192.168.101.1

------------
Got answer:
   HEADER:
       opcode = QUERY, id = 9, rcode = NXDOMAIN
       header flags:  response, auth. answer, want recursion, recursion avail.
       questions = 1,  answers = 0,  authority records = 1,  additional = 0

   QUESTIONS:
       99.101.168.192.in-addr.arpa, type = PTR, class = IN
   AUTHORITY RECORDS:
   ->  101.168.192.in-addr.arpa
       ttl = 3600 (1 hour)
       primary name server = jon-dc01.jonathan.local
       responsible mail addr = hostmaster.jonathan.local
       serial  = 26
       refresh = 900 (15 mins)
       retry   = 600 (10 mins)
       expire  = 86400 (1 day)
       default TTL = 3600 (1 hour)

------------
*** jon-dc01.jonathan.local can't find 192.168.101.99: Non-existent domain

 

Here, you can see it is still being resolved locally, but not finding anything.

 

If the results are similar to the second one, then you need to look at the DNS settings on the client to see where it thinks it should be trying to register it. You can also force it by ipconfig/registerdns (on the client)

 

Jonathan

Posted
If it works, the entire problem should then be fixed in 4 days, assuming a default configuration on your DHCP scope and no other problems prevent updates at the 50% mark of the lease.

 

If all our machines are rebooted every day, would it still take 4 days?

Posted
If all our machines are rebooted every day, would it still take 4 days?

 

AFAIK, DHCP leases are for 8 days by default and the computer first tries to renew it at the halfway mark, although you can force it with ipconfig /renew at the command prompt. If it's not urgent though I'd just try that to test it and then wait for the computers to naturally renew their lease.

  • Thanks 1
Posted
If the results are similar to the second one, then you need to look at the DNS settings on the client to see where it thinks it should be trying to register it. You can also force it by ipconfig/registerdns (on the client)

 

It appears to be local (as below). I ran ipconfig /registerdns and still got the same message, although it did warn it might take 15 minutes to function.

 

Server: vr-dc2.domain.local

Address: 10.121.244.14

 

------------

Got answer:

HEADER:

opcode = QUERY, id = 3, rcode = NXDOMAIN

header flags: response, auth. answer, want recursion, recursion avail.

questions = 1, answers = 0, authority records = 1, additional = 0

 

QUESTIONS:

6.245.121.10.in-addr.arpa, type = PTR, class = IN

AUTHORITY RECORDS:

-> 245.121.10.in-addr.arpa

ttl = 3600 (1 hour)

primary name server = vr-dc2.domain.local

responsible mail addr = hostmaster.domain.local

serial = 22

refresh = 900 (15 mins)

retry = 600 (10 mins)

expire = 86400 (1 day)

default TTL = 3600 (1 hour)

 

------------

*** vr-dc2.domain.local can't find 10.121.245.6: Non-existent domain

Posted

Just to add, is anyone aware of a tool that will show the time taken to run an NSLOOKUP?

 

We have a problem with the Internet which also appears to be related to our DNS server, albeit it might be the forward lookups provided by the county council.

 

NSLOOKUP from Windows command prompt doesn't give any indication of time taken to complete, but I noticed on our web client (whilst the support guy was bug testing) that the tool there showed the time taken. Unfortunately I can't access this as he was using a support login.

Posted

Yup - that looks local to me.

 

Can you go to the Reverse DNS zone and double check what PTR records are there? What I mean by this is are they all missing? Is it just a subset of machines? Or is it all machines from DHCP? This may all help narrow it down.

 

I would then check to see what DNS server is setup in the DHCP settings (from the console) and what is being received by the client (from ipconfig/all). Do these match? Is it correct? Is it the same as the DNS server you are running nslookup against?

 

I have had a problem in the past where replication had been blocked and the DNS was being registered in one DNS and I was querying against a second. I have also had a problem where I typed in the wrong IP addres for the DNS server. Because it would still broadcast to the subnet it could name resolve most things, and the proxy server handled most of the rest so that one took a while to spot!

 

Jonathan

Posted
Can you go to the Reverse DNS zone and double check what PTR records are there? What I mean by this is are they all missing? Is it just a subset of machines? Or is it all machines from DHCP? This may all help narrow it down.

 

It would appear to be a subset. I've added to the zones that where there to cover all subnets, so there's 10.121.244.*, 10.121.245.*, and 10.121.246.*. The two machines I'm testing are in 10.121.245.*, but neither appear in the reverse lookup zone. There appear to be about 60 records in 244, 20 in 245, and 4 in 246.

 

Only machines in 244 have static addresses, so there must be machines here with DHCP addresses. I don't know if this relates to the 4 day registration? The 245 and 246 reverse lookup zones have only just been created in the last couple of days. Also DHCP has only been set to dynamic updating as of yesterday.

 

I would then check to see what DNS server is setup in the DHCP settings (from the console) and what is being received by the client (from ipconfig/all). Do these match? Is it correct? Is it the same as the DNS server you are running nslookup against?

 

Both the console and client match in terms of DNS server (10.121.244.14).

 

As above I'm wondering if this is related to how new some of this setup is, and it's taking time to bed in. Although it doesn't explain why I can't register the DNS.

Posted
I've just done a scan through the DNS Manager and noticed some odd entries relating to our old DNS servers (this DNS was migrated by a consultant over Christmas). As these servers aren't even turned on any more I've removed/updated the entries.
Posted

Having checked again this morning, with the exception of at least one machine essentially none of our student PCs (on a different domain) are registering with DNS. Although I have no idea why :confused:

 

The one PC that has registered is just a random machine in an IT suite. Nothing special about it that I can see. Again, not sure if I have to wait several days for the DHCP lease. I notice this has been configured to 8 days, so might drop it to 1 day and see if it makes a difference.

Posted

A further brainwave. The one PC that's registering is XP. The rest are Win 7.

 

Is there something related to Win 7 that could be stopping reverse lookup from working?

Posted

Due to starting to use Spiceworks I've just noticed that our network wasnt doing reverse DNS either.

 

I sorted it out using GPO.

 

Enable this for your computer OU's

 

Computer Configuration

Administrative Templates

Network

DNS client

Dynamic Update > Enable

Register PTR Enable and the drop down box to Register

Registration Refresh Interval > Enable - leave at the default 1800 seconds.

 

You also need to go to your DNS settings and enable Dynamic Updates for your Reverse DNS zones.

 

Mine are now updating the PTR's

  • Thanks 1
Posted
You also need to go to your DNS settings and enable Dynamic Updates for your Reverse DNS zones.

These are enabled, but Secure only.

 

From reading around the topic it seems that any Win 2000+ PC should be able to cope though with Secure updates.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...