Monday, February 28, 2011

Windows DNS related

On Windows DNS Server:
Right-click server name and click Clear Cache

On Mikrotik:
IP \ DNS \ Cache \ Flush

On client workstation:
ipconfig /displaydns
ipconfig /flushdns
---

Can access remote/network share by hostname but not by FQDN
Google: can access share by host|server|computer name but not by fqdn
---

Host Name Resolution Methods Explained - Updated:May 12, 2019 By steve
Q- Can I tell which method resolved the host name?
A- No
Article mentioned in comment:

Force Windows client with static IP to register with Windows DNS server:
Updating DNS after changing Static IP

Why wouldn't a computer query the 2nd DNS server if the primary was off-line?
If the query sent to the first entry in the DNS list responds with an NXDOMAIN response, meaning it is an actual response, but there is no record from the server it asked, then it will look no further because it is a response. however if it receives a NULL response, meaning the DNS server is down and there is no response, it will remove the first entry from the 'eligible resolvers list' for a certain amount of time (depending on the OS version and SP level), then send the query to the second one. However, if the record is already cached, it won' even ask the first entry. Hence why the possibility that the client machine is asking a DC that is down.
---

Windows 7- DNS Record not registering

Assuming the DHCP Option 15 is not set.

Without setting a DNS suffix to use and having the "Use this connections DNS suffix in DNS registration" box checked, when the PC is given an address from the DHCP server, it will try to register with DNS (the DNS servers it recieved from DHCP).

What happens next is that just the hostname is sent to the DNS server for registration. The DNS server is looking for a FQDN (Fully Quallified Domain Name, i.e. computer1.sampledomain.com) and what it recieves is the hostname(i.e. computer1).

The DNS server cannot find the zone file to apply this hostname to, it doesn't know if it is authorative or if it needs to look to its forwarders for a lookup.

When you enter the DNS Suffix and check the "Use this connections DNS suffix in DNS registration" box. Then the DNS server is sent the FQDN. The DNS server can then determine if it is authorative for the domain. If so, then it will create an A record and a PTR record for the host.

Note to self:
So 3 things to be made sure on "Advanced TCP/IP Settings":
- fill in DNS suffix for this connection
- check "Register this connection's ..."
- check "Use this connection's DNS suffix ..."
---

two main rules behind DNS Dynamic Registration are:

* The machine's Primary DNS Suffix must match the zone you want it to register into.
* The configured DNS server addresses must only be the internal DNS servers - no others (such as an ISP, the router, etc)

Rules for DNS Dynamic Update:

* If you're using Windows DHCP:
configure DHCP to own the record, force DHCP to update all records, forward and reverse, as well as set scavenging so old records get removed
* If you're using NON Windows DHCP:
make sure client is ONLY using the AD's DNS servers

Source:
Clients are unable to register DNS dynamic update when non-Microsoft DHCP Server is around
http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/c9adccdd-f127-4bed-9848-f16b869a3d16
Comment by Ace Fekay on September 09, 2010 12:57 AM
---

If you're using scavenging,...
The scavenging period must be set less than the lease time

Source:
DHCP, Dynamic DNS Updates , Scavenging, static entries [and] timestamps, and the DnsProxyUpdate Group
http://msmvps.com/blogs/acefekay/archive/2009/08/20/dhcp-dynamic-dns-updates-scavenging-static-entries-amp-timestamps-and-the-dnsproxyupdate-group.aspx
Section:
Scavenging Refresh and No Refresh Settings Must be less than the DHCP Lease Period

No comments:

Post a Comment