Visit Our UNIX and Linux User Community


Home Questions Tags Users Unanswered Windows 2016 DNS server returns SERVFAIL for non-existing doma


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Home Questions Tags Users Unanswered Windows 2016 DNS server returns SERVFAIL for non-existing doma
# 1  
Old 02-02-2020
Home Questions Tags Users Unanswered Windows 2016 DNS server returns SERVFAIL for non-existing doma

I have two DNS resolvers in /etc/resolv.conf file. The top one is Windows DNS server, and the bottom one is my wi-fi router. Please see below. nameserver 192.168.1.126 nameserver 192.168.1.1

In Windows DNS server, the sole "Forward Lookup Zone" is biman.net

When I query for host in the zone (biman.net) the Windows DNS server works fine-- either it returns the IP or NXDOMAIN. But when I query for anything for non-existing zone it returns SERVFAIL. But the wifi router returns NXDOMAIN even when zone name is bogus.

How can I get NXDOMAIN response from Windows DNS server when zone does not exist?

Below are the queries and the responses.
Code:
root@VDIkali:~# nslookup -q=A kali2.biman.net Server: 192.168.1.126 Address: 192.168.1.126#53

Name: kali2.biman.net Address: 192.168.1.122

root@VDIkali:~# nslookup -q=A NOHOST.biman.net Server: 192.168.1.126 Address: 192.168.1.126#53

** server can't find NOHOST.biman.net: NXDOMAIN

root@VDIkali:~# nslookup -q=A kali2.NONEXTING.net ;; Got SERVFAIL reply from 192.168.1.126, trying next server Server: 192.168.1.1 Address: 192.168.1.1#53

** server can't find kali2.NONEXTING.net: NXDOMAIN


Last edited by vbe; 02-02-2020 at 07:21 AM.. Reason: code tags
# 2  
Old 02-02-2020
That's a secret that nobody could solve in over a decade. Why do Windows DNS servers return SERVFAIL rather than NXDOMAIN?
IMHO a severe bug. Effectively it disables the caching of an unsuccessful host lookup; makes a performance difference, especially with a thousand DNS clients that run buggy software. But the customer insisted on Windows DNS.
Perhaps somebody here has a solution by chance. Otherwise this is a question for a Windows forum...
Okay, a mitigation I can offer: have the non-Windows nameserver first in /etc/resolv. conf

Last edited by MadeInGermany; 02-02-2020 at 10:39 AM.. Reason: typo
This User Gave Thanks to MadeInGermany For This Post:
# 3  
Old 02-02-2020
Quire right, only many big enterprises use MS... for the active directory, and while at it let MS... rule the DNS also for "security" purpose with MS proxies...
This leads to many fancy bugs when there are misunderstandings between Windows standards and Unix standards...
Is this yet another case?
# 4  
Old 02-02-2020
Thanks. Just 2 comments:
1. In our company, we had a big service outage because of secondary DNS server going down. At the first thought we were surprised why requests were even trying to go to the secondary. Then we found out it was because a lot of SERVFAIL in the primary one even in normal circumstances. I wonder how the companies handle Windows DNS servers.

2. I realize that if Windows DNS server is set up to forward the query to another DNS server (tested in non-windows one) one then SERVAIL does not happen
# 5  
Old 02-02-2020
Hi,
Here you nail pin the problem of big structures, the lack of communication between the different responsibilities:
We Unix people never get clear answers from security team or network team, it is you that have to show the others the issue, and its cause before they take into account, mainly because in the case of DNS and proxies e.g they see no problems with Window servers when you are trying something on your lan that is not working as expected it becomes a nightmare having to test things that are not in your hands like the network it goes with trying a similar config on 2 other servers, if it works there, try to figure out what can be the culprit... In other words you have to suggest ( because never a good idea to blame the others for not doing their work seriously...) by showing the case that works and the one that doesnt that it may be a misconfiguration of a port in a switch as you have already changed the cabling with new and not more success... or are you filtered? etc...
I suggest you look with the Windows server team to see if they also have the same issue, and work together to try to explain at the Network team the issue
# 6  
Old 02-03-2020
Just asking for another help, if you can. I was analysing my DNS traffic using tcpdump (not verbose mode) in a AIX client. I found that a lot of repeat of transaction IDs over matter of hours. Is it expected?

Code:
22:39:52.301965 IP 192.168.1.119.56880 > 192.168.1.126.53: 49968+ A? shavar.services.mozilla.com. (45)


Last edited by vbe; 02-04-2020 at 05:29 AM.. Reason: code tags
# 7  
Old 02-03-2020
Some more evidences:
Code:
19:20:00.768582 IP 172.18.140.80.43432 > 172.28.3.40.53: 62969+ AAAA? DMPCUSG01. (27)
19:20:00.769278 IP 172.28.3.40.53 > 172.18.140.80.43432: 62969 ServFail 0/0/0 (27)
19:20:00.769344 IP 172.18.140.80.43433 > 172.18.3.40.53: 62969+ AAAA? DMPCUSG01. (27)
19:20:00.769775 IP 172.18.3.40.53 > 172.18.140.80.43433: 62969 ServFail 0/0/0 (27)
20:30:01.433471 IP 172.18.140.80.46031 > 172.28.3.40.53: 62969+ AAAA? DMPCUSG01. (27)
20:30:01.434064 IP 172.28.3.40.53 > 172.18.140.80.46031: 62969 ServFail 0/0/0 (27)
20:30:01.434163 IP 172.18.140.80.46033 > 172.18.3.40.53: 62969+ AAAA? DMPCUSG01. (27)
20:30:01.434361 IP 172.18.3.40.53 > 172.18.140.80.46033: 62969 ServFail 0/0/0 (27)

The above shows same transaction ID/query ID repeat for more than an hour

The below shows same queryID for different query
Code:
19:30:06.039765 IP 172.18.140.80.43852 > 172.28.3.40.53: 56554+ AAAA? 172.18.140.80.sg.uobnet.com. (45)
19:30:06.040741 IP 172.28.3.40.53 > 172.18.140.80.43852: 56554 NXDomain* 0/1/0 (110)
19:30:06.644668 IP 172.18.140.80.43873 > 172.28.3.40.53: 56554+ AAAA? DMPCUSG01. (27)
19:30:06.645465 IP 172.28.3.40.53 > 172.18.140.80.43873: 56554 ServFail 0/0/0 (27)
19:30:06.646417 IP 172.18.140.80.43876 > 172.18.3.40.53: 56554+ AAAA? DMPCUSG01. (27)
19:30:06.646762 IP 172.18.3.40.53 > 172.18.140.80.43876: 56554 ServFail 0/0/0 (27)
19:30:11.677793 IP 172.18.140.80.43931 > 172.28.3.40.53: 56554+ AAAA? DMPUSG01. (26)
19:30:11.678681 IP 172.28.3.40.53 > 172.18.140.80.43931: 56554 ServFail 0/0/0 (26)
19:30:11.678892 IP 172.18.140.80.43932 > 172.18.3.40.53: 56554+ AAAA? DMPUSG01. (26)
19:30:11.679180 IP 172.18.3.40.53 > 172.18.140.80.43932: 56554 ServFail 0/0/0 (26)
19:30:15.333065 IP 172.18.140.80.43939 > 172.28.3.40.53: 56554+ AAAA? DMPCUSG03. (27)
19:30:15.334013 IP 172.28.3.40.53 > 172.18.140.80.43939: 56554 ServFail 0/0/0 (27)
19:30:15.334393 IP 172.18.140.80.43940 > 172.18.3.40.53: 56554+ AAAA? DMPCUSG03. (27)
19:30:15.335231 IP 172.18.3.40.53 > 172.18.140.80.43940: 56554 ServFail 0/0/0 (27)
19:30:15.734408 IP 172.18.140.80.43950 > 172.28.3.40.53: 56554+ AAAA? DMPCUSG03. (27)
19:30:15.735368 IP 172.28.3.40.53 > 172.18.140.80.43950: 56554 ServFail 0/0/0 (27)
19:30:15.735561 IP 172.18.140.80.43951 > 172.18.3.40.53: 56554+ AAAA? DMPCUSG03. (27)
19:30:15.735866 IP 172.18.3.40.53 > 172.18.140.80.43951: 56554 ServFail 0/0/0 (27)
19:30:16.869232 IP 172.18.140.80.44008 > 172.28.3.40.53: 56554+ AAAA? DMPUSG01. (26)
19:30:16.869946 IP 172.28.3.40.53 > 172.18.140.80.44008: 56554 ServFail 0/0/0 (26)
19:30:16.902206 IP 172.18.140.80.44010 > 172.18.3.40.53: 56554+ AAAA? DMPUSG01. (26)
19:30:16.902499 IP 172.18.3.40.53 > 172.18.140.80.44010: 56554 ServFail 0/0/0 (26)

Moderator's Comments:
Mod Comment Please use code tags for the code and data you post, thanks

Last edited by vbe; 02-04-2020 at 05:31 AM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #727
Difficulty: Medium
Radia Perlman Invented the Spanning Tree Protocol (STP).
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

2. Solaris

Tilde prefix returns invalid home directory.

I am trying to find the home directory of users on a UNIX (Solaris/AIX) box using echo ~usernameThis does return the home directory for all valid users. For some reason this command also outputs home directory which are non-existent for few users who seem not to have logon access to that... (31 Replies)
Discussion started by: thinkster
31 Replies

3. Hardware

Stack Overflow Questions Tags Users Badges Unanswered Ask Question Ask for the explanation of types

I have read a document which tells me the following 4 things are done by the RAM embedded on disk driver controller. But I don't know what's difference between buffer and cache. Thanks! RAM on disk drive controllers 1 firmware 2 speed matching buffer 3 prefetching buffer 4 cache (1 Reply)
Discussion started by: 915086731
1 Replies

4. IP Networking

DNS: Dig returns different responses...

Hey everyone, Okay, so I've been having some fun with the dig command, and wanted to dig my old school. Two questions came up from this. So I: dig @8.8.8.8 +recurse njcu.edu ANY and the result is about 8 records, including the SOA record. One of them is this weird TXT record, and the other is... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

5. UNIX for Advanced & Expert Users

Yahoo Interview unanswered questions

Hi guys, please help me get the answers of these questions which I faced in an interview @ Yahoo 1. I want to " ls " few million files, certainly I cannot do so because ls has some restriction in KBs, how can I do it alternatively. 2. Change the system in such a way that while booting up,... (2 Replies)
Discussion started by: gauravsharma29
2 Replies

6. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

7. UNIX for Dummies Questions & Answers

dlsym() returns 0 for an existing function

Sometimes I observe this in gdb: (gdb) br my_function Breakpoint .. at 0x...: file ..., line ... i.e., "my_function" does exist in the current executable. however, dlsym does not find it: (gdb) p dlsym(0,"my_function") $6 = 0 This is a C program; dlsym does find other defined functions and... (2 Replies)
Discussion started by: sds
2 Replies

8. Windows & DOS: Issues & Discussions

Install Windows 2003 R2 on existing Windows 2008

Hi, I am trying to install WIndows 2003 R2 Server on existing Windows 2008 server. When I run the 2003 cd it says no disk found. What can be the problem. (2 Replies)
Discussion started by: gunnervarma
2 Replies

9. UNIX for Dummies Questions & Answers

ftp server on old home computer - a few questions

Hi! Very new to unix stuff, and this is my first post to the forum. I'm pretty sure I know enough to know I know nothing, so please be patient with me and don't laugh too hard. Ok, I've got an old computer and a laptop - the old computer was bought in the mid 90's it's still running windows... (1 Reply)
Discussion started by: boredbody
1 Replies

Featured Tech Videos