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.
Last edited by vbe; 02-02-2020 at 06:21 AM..
Reason: code tags
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 09:39 AM..
This User Gave Thanks to MadeInGermany For This Post:
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?
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
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
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?
Last edited by vbe; 02-04-2020 at 04:29 AM..
Reason: code tags
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)
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)
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
2 speed matching buffer
3 prefetching buffer
4 cache (1 Reply)
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 @220.127.116.11 +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)
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)
I'd like to get some opnions on choosing DNS server:
Windows DNS vs Linux BIND comparrsion:
1) managment, easy of use
I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
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)
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)