Re: DNS response for non-fqdn domain
- From: "Kevin D. Goodknecht Sr. [MVP]" <admin@xxxxxxxxxxxxxx>
- Date: Wed, 17 May 2006 06:00:40 -0500
Syafril Hermansyah wrote:
Hi there,
I am new to this list.
I would like to know how to change MS DNS (W2K3 or W2K)to response
NXDOMAIN instead of SERVFAIL when client query NON-FQDN domain just
like linux BIND did.
for example,
this query to BIND (expected response)
nslookup microsoft 192.168.1.10Server: 192.168.1.10
Address: 192.168.1.10#53
** server can't find microsoft: SERVFAIL
syafril@server:~> nslookup microsoft 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find microsoft: NXDOMAIN
query to W2K3 DNS (no AD)
nslookup microsoft 192.168.1.10Server: 192.168.1.10
Address: 192.168.1.10#53
** server can't find microsoft: SERVFAIL
Actually MS DNS is giving the correct response because the root servers
don't (or shouldn't) have A records for TLDs. So why should DNS query the
root for A records? The Root should only return NS or SOA records for TLDs,
which you didn't query for.
I believe this registry value still works, though I cannot be sure because
the DNS client and nslookup appends the DNS suffix search lists to non-FQDN,
apparently you don't have a DNS suffix search list, which would make this a
moot point. All you really need to do to get MS DNS to resolve single-label
names is to add a trailing "." to the query, which is what makes a name
fully-qualified.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DNS\Parameters
On the Edit menu, click Add Value, and then add the following registry
value:
Value Name: RecurseSingleLabel
Data Type: REG_DWORD
Value: 0 (Default)
When set to 0, DNS will not recurse Single Label Queries except NS and SOA
RR types,
setting RecurseSingleLabel to 1 will recurse all RR types.
--
Best regards,
Kevin D. Goodknecht Sr. [MVP]
Hope This Helps
===================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and
benefit from your issue, to respond directly to
me remove the nospam. from my email address.
===================================
http://www.lonestaramerica.com/
http://support.wftx.us/
https://secure.lsaol.com/
===================================
Use Outlook Express?... Get OE_Quotefix:
It will strip signature out and more
http://home.in.tum.de/~jain/software/oe-quotefix/
===================================
Keep a back up of your OE settings and folders
with OEBackup:
http://www.oehelp.com/OEBackup/Default.aspx
===================================
.
- Follow-Ups:
- Re: DNS response for non-fqdn domain
- From: Syafril Hermansyah
- Re: DNS response for non-fqdn domain
- References:
- DNS response for non-fqdn domain
- From: Syafril Hermansyah
- DNS response for non-fqdn domain
- Prev by Date: Re: DNS Cloaking
- Next by Date: Re: VPN and DNS
- Previous by thread: Re: DNS response for non-fqdn domain
- Next by thread: Re: DNS response for non-fqdn domain
- Index(es):
Relevant Pages
|