We have a company.local domain name and also a DNS server. Lets say IP of this server is 192.168.1.1 and we have a DR site which has a replication between main DC and it has IP 192.168.1.2 , On the client site, we distribute DNS servers primary 192.168.1.1 secondary 192.168.1.2 but when i ping company.local on the client side it forcefully goes to the secondary DNS server and resolves from there. When i do ipconfig /flushdns and ping again it goes the primary, everytime i use ipconfig /flushdns domain name resolves from other DNS. Is this how it should be or doesn’t it has to resolve from primary everytime, if no communication with primary then go to secondary?<\/p>\n
Thanks in advance<\/p>","upvoteCount":5,"answerCount":8,"datePublished":"2025-07-01T13:06:54.212Z","author":{"@type":"Person","name":"kadirozkan","url":"https://community.spiceworks.com/u/kadirozkan"},"acceptedAnswer":{"@type":"Answer","text":"
If you do<\/p>\n
nslookup company.local you will get back the IPs of ALL DCs. Any of these IPs can return on a ping company.local.<\/p>\n
Whichever replies first is the one that client will use, until they reboot or flush the DNS cache.<\/p>\n
If you are happy with your answer, please mark a best answer for this topic.<\/p>","upvoteCount":1,"datePublished":"2025-07-07T15:41:05.486Z","url":"https://community.spiceworks.com/t/domain-name-resolving-from-secondary-dns-server/1220018/8","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},"suggestedAnswer":[{"@type":"Answer","text":"
We have a company.local domain name and also a DNS server. Lets say IP of this server is 192.168.1.1 and we have a DR site which has a replication between main DC and it has IP 192.168.1.2 , On the client site, we distribute DNS servers primary 192.168.1.1 secondary 192.168.1.2 but when i ping company.local on the client side it forcefully goes to the secondary DNS server and resolves from there. When i do ipconfig /flushdns and ping again it goes the primary, everytime i use ipconfig /flushdns domain name resolves from other DNS. Is this how it should be or doesn’t it has to resolve from primary everytime, if no communication with primary then go to secondary?<\/p>\n
Thanks in advance<\/p>","upvoteCount":5,"datePublished":"2025-07-01T13:06:54.280Z","url":"https://community.spiceworks.com/t/domain-name-resolving-from-secondary-dns-server/1220018/1","author":{"@type":"Person","name":"kadirozkan","url":"https://community.spiceworks.com/u/kadirozkan"}},{"@type":"Answer","text":"
Do you really mean that it resolves from the second DNS server (query is sent there)?
\nOr do you mean the response is of the second domain controller?<\/p>\n
2 completely different things.
\nDNS server use - dependent on operating system but windows 10 as an example could use either and will continue to use it until it stops working.
\nThere is no issue with this, in a working AD environment all DNS servers should have the same information.<\/p>\n
DNS name resolution - the AD domain name record in DNS will have multiple A records one for the IP of each Domain controller in the network. the request will resolve to any. It’s round robin across all queries.
\nFor info this is not how logon server is determined etc - those services do not use simple dns record.<\/p>\n
For optimization AD sites and services should match the network e.g. 2 sites defined (main/DR) and the DCs located in the correct site.<\/p>","upvoteCount":2,"datePublished":"2025-07-01T13:53:14.879Z","url":"https://community.spiceworks.com/t/domain-name-resolving-from-secondary-dns-server/1220018/2","author":{"@type":"Person","name":"matt7863","url":"https://community.spiceworks.com/u/matt7863"}},{"@type":"Answer","text":"