Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The enviroment is a private network with a single router using DD-WRT's dnsmasq to resolve names and do caching. Resolving hosts via DNS works fine:

dig +short @ gamma

Now, when trying to access a SMB share on a host or even simply pinging it, Windows doesn't even try to resolve the name through DNS, but instead requests LLMNR and NBNS resolution, both which I want to avoid.

Here's a output of wireshark when pinging the host gamma, notice that there is no DNS resolution whatsoever:

0.000000 ->  LLMNR 65 Standard query 0x64a0  A gamma
0.099582 ->  LLMNR 65 Standard query 0x64a0  A gamma
0.303237 -> NBNS 92 Name query NB GAMMA<00>
1.052808 -> NBNS 92 Name query NB GAMMA<00>
1.802938 -> NBNS 92 Name query NB GAMMA<00>

On the other hand, pinging a host address with a FQDN, like gamma.local, always uses DNS:

0.426289 ->  DNS 71 Standard query 0xe319  A gamma.local
0.427027  -> DNS 87 Standard query response 0xe319  A

Here's some output of my client's configuration:

netsh dnsclient show state

Name Resolution Policy Table Options

Query Failure Behavior                : Always fall back to LLMNR and
                                        NetBIOS for any kinds of errors

Query Resolution Behavior             : Resolve both IPv4 and IPv6
                                        addresses for names

Network Location Behavior             : Never use Direct Access settings

Machine Location                      : Outside corporate network

Direct Access Settings                : Not Configured

DNSSEC Settings                       : Not Configured

ipconfig /all

Host Name . . . . . . . . . . . . : BETA
Primary Dns Suffix  . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Now I've search high and low for a solution, but from what I've gathered, Windows only performs real DNS resolution when connected to a Domain Controller. Is this changeable? Maybe set the client into a mode where it thinks it is connected to a Domain Controller?

The only solution I've found so far would be to append a .local DNS suffix through the adapter's DNS configuration (Windows does send DNS queries for gamma.local for example), but isn't there a way to set Windows to always resolve names like gamma though DNS first?

share|improve this question
have you tried setting DNS IP's in the network configuration GUI? – Lizz Dec 14 '12 at 6:13
have you found a solution for it ? – Kousalik Feb 13 '14 at 14:47
Sadly not. I'm still using DNS suffixes which work in most applications, but not all :( – silverwind Feb 23 '14 at 12:54

You must log in to answer this question.

Browse other questions tagged .