Recommended Posts

OK So I am not a noob here, However I am now been told or rather querying this........ So imagine if you will you have a DNS server on a Windows Domain. Clients use this to resolve DNS. Fine.

 

Explain the process of how this works?? My understanding is as follows

 

You query the DNS server, It needs to look up external so for arguments sake it uses your ISP's DNS. make sense right? If your ISP's DNS servers dont resolve it then it uses the built in root servers on the internet. If they cant resolve that then it returns a failure (NX Domain???)

 

So there is no way that the Windows DNS server should be looking at ANYTHING other than your ISP's and the Root Servers in this scenario?

 

 

Link to comment
https://www.neowin.net/forum/topic/1262458-how-does-a-windows-dns-server-work/
Share on other sites

Root servers

Forwarders

local dns

 

 

 

Pc queries the local dns, if the local dns doesn't know, it moves up the the forwarder, if the forwarder doesn't know, it moves up to the root, if the root doesn't know it says it can't find.  most admins disable root server lookup once they set the forwarders. Forwarders could be google dns, open dns, isp dns, or any other internet dns server.

 

Does that help? 

 

 

say pc2 queries pc1.local.dc.com, the local dns server will be able to see that and return an ip associated to pc1.

 

say pc2 queries www.google.com, the local dns server will say I don't know that, let me forward that to the forward dns server to see if it knows, the internet forward dns server knows that and returns an ip associated to www.google.com...but lets say the forwarder doesn't know, the dns server would then go up to the root server to see if it knows and would return an ip associated to www.google.com

 

The internet servers do not know to resolve pc1.local.dc.com, they don't know what ip it is on so it will always fail when looking that up...but your internal dns server knows local.dc.com as it hosts that dns zone so it can resolve that. 

  • Thanks 1

Root servers

Forwarders

local dns

 

 

 

Pc queries the local dns, if the local dns doesn't know, it moves up the the forwarder, if the forwarder doesn't know, it moves up to the root, if the root doesn't know it says it can't find.  most admins disable root server lookup once they set the forwarders.

 

yes so that is what I thought. I should see NO traffic going to any DNS servers in China for example. The Server Admins think this is normal because they are saying if the root server cant find it just looks it up from somewhere.

 

My query is that if that IS the case then how would it know when to stop, How does it find these magic DNS servers and how does it know which to trust.

DNS servers to look at are defined in the Forwarders tab and Root Hints tab of your DNS server(s).  Each DNS server has its own local config.  Like I said though, most disable the root hints lookup if they have forwarders.

post-118098-0-96170000-1435847001.jpg

post-118098-0-28407000-1435847606.jpg

  • Thanks 1

I generally used root but forwarders are good if you have external DNS setup for restrictions to certain sites. Sure firewalls can do that too but I guess :)

Windows DNS is a must however for AD and clients should definitely use it to have a proper functioning local network.

Yeah I get that, So basically the only DNS traffic I should see going out from the Windows DNS server is to my ISP's DNS Server IP's and the Root Hint IP's. No where else right?

 

That is correct, unless your clients have something configured either statically or in their dhcp, or an application is doing something funky (malware/virus for example).  A netstat should help determine what process is communicating to what.

 

elevated command prompt

 

netstat -a -b -n

 

may have to pipe it into a text document

 

netstat -a -b -n >%userprofile%\desktop\netstat.txt

 

 

 

I generally used root but forwarders are good if you have external DNS setup for restrictions to certain sites. Sure firewalls can do that too but I guess :)

Windows DNS is a must however for AD and clients should definitely use it to have a proper functioning local network.

sometimes the roots are slow to respond, so configuring forwarders may result in faster/instantaneous response.

"the only DNS traffic I should see going out from the Windows DNS server is to my ISP's DNS Server IP's and the Root Hint IP's. No where else right?"

If you have forwarders setup then all you should see is traffic to what your forwarding too. If your using root hints, ie resolver mode then you would see traffic to roots, then to the authoritative serves for whatever domains your looking resolve a record in. Roots are not recursive, they will just tell you where you resolver needs to to look up what your looking to resolve.

While sc302 started the flow, its not finished..

Authoritative name server.

Root servers

Forwarders

local dns

So if you have your dns setup to ask forwarders, I really can not think of a time it would ever have to go to roots and then name server for the domain. Unless you were using modified root hints for your own stuff.

Normally you would use either forwarder mode or resolver mode. Normally would not use both at the same time to be honest.

If you do a trace of how something gets looked up you would see your resolver ask for the tld owner, lets use www.neowin.net as example

would ask the root servers, hey who is authoritative for .net, the root hints is what tells your resolver where to start.

You can always grab current root hints from here

http://www.internic.net/domain/named.root

So what happens is one of those is asked for who owns .net. Here you see a full trace of the process here, I had it not do dnssec so a cleaner output.

user@ubuntu:~$ dig www.neowin.net +trace +nodnssec

; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> www.neowin.net +trace +nodnssec

;; global options: +cmd

. 501168 IN NS a.root-servers.net.

. 501168 IN NS b.root-servers.net.

. 501168 IN NS c.root-servers.net.

. 501168 IN NS d.root-servers.net.

. 501168 IN NS e.root-servers.net.

. 501168 IN NS f.root-servers.net.

. 501168 IN NS g.root-servers.net.

. 501168 IN NS h.root-servers.net.

. 501168 IN NS i.root-servers.net.

. 501168 IN NS j.root-servers.net.

. 501168 IN NS k.root-servers.net.

. 501168 IN NS l.root-servers.net.

. 501168 IN NS m.root-servers.net.

;; Received 239 bytes from 192.168.9.253#53(192.168.9.253) in 26 ms

net. 172800 IN NS a.gtld-servers.net.

net. 172800 IN NS b.gtld-servers.net.

net. 172800 IN NS c.gtld-servers.net.

net. 172800 IN NS d.gtld-servers.net.

net. 172800 IN NS e.gtld-servers.net.

net. 172800 IN NS f.gtld-servers.net.

net. 172800 IN NS g.gtld-servers.net.

net. 172800 IN NS h.gtld-servers.net.

net. 172800 IN NS i.gtld-servers.net.

net. 172800 IN NS j.gtld-servers.net.

net. 172800 IN NS k.gtld-servers.net.

net. 172800 IN NS l.gtld-servers.net.

net. 172800 IN NS m.gtld-servers.net.

;; Received 528 bytes from 192.58.128.30#53(j.root-servers.net) in 77 ms

neowin.net. 172800 IN NS ns-180.awsdns-22.com.

neowin.net. 172800 IN NS ns-917.awsdns-50.net.

neowin.net. 172800 IN NS ns-1610.awsdns-09.co.uk.

neowin.net. 172800 IN NS ns-1312.awsdns-36.org.

;; Received 212 bytes from 192.52.178.30#53(k.gtld-servers.net) in 120 ms

www.neowin.net. 21600 IN CNAME neowin.net.

neowin.net. 300 IN A 54.86.19.37

neowin.net. 300 IN A 54.172.165.25

neowin.net. 300 IN A 54.173.39.38

neowin.net. 172800 IN NS ns-1312.awsdns-36.org.

neowin.net. 172800 IN NS ns-1610.awsdns-09.co.uk.

neowin.net. 172800 IN NS ns-180.awsdns-22.com.

neowin.net. 172800 IN NS ns-917.awsdns-50.net.

;; Received 242 bytes from 205.251.195.149#53(ns-917.awsdns-50.net) in 316 ms

Here is a great picture that explains the process of using roots.

post-14624-0-27656300-1435855380.png

In forwarder mode... Just add some steps until you get to a point where there is an actual resolver.

So you could have

client looks in his cache, nothing so asks its name server

ns - nothing in cache, forward to isp

isp - nothing in cache, can either forward again or actual resolve

resolver - nothing in cache, ask roots, ask ns tld, ask ns of domain, ask ns of delegated subdomain, ask authoritative server for domain for record of host looking up.

Yeah thats exactly how I thought it happens. 
 
I suspect that the DNS server has something funky on it that is doing its own DNS requests.......... malware/virus. Hence the traffic I am seeing on the firewall going to China/Korea etc. 
 
The fact that it is a DNS server is confusing some of the guys here. What I really should be saying is that the OS of the DNS server itself is infected perhaps. 

well if you have it in root hint mode, and someone does a query for something in china, then you would see it query the name servers. Or if forwarder doesn't know them for some reason its possible for it to go ask roots and then whatever ns are listed for the domains someone is asking for.

You have some sniffs of the traffic to see exactly what its doing? And what specific mode are you in? forwarder only?? Or root hints only? Or the kind of pointless forwarder than hints mode?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • "it opens up new doors for people who prefer using Edge, but cannot be bothered to configure a Microsoft account" You already have a Microsoft account if you are using Windows 11, because you can't set it up without one.
    • This is how much iPhone 18 Pro could cost after Apple's price hike confirmed by Hamid Ganji Image via Apple Apple CEO Tim Cook confirmed in a recent interview that the company may have to raise prices on some of its products due to the ongoing memory shortage. While he did not elaborate on the scale of the price hikes, new estimates suggest that Pro iPhone models could become significantly more expensive this fall. The Wall Street Journal and research firm TechInsights have come up with an educated estimate of how much the upcoming iPhone 18 Pro could cost after its launch in September. The estimate is based on current increases in memory and storage chip prices. For starters, the iPhone 18 Pro base model is expected to feature 12GB of RAM and 256GB of internal storage. According to TechInsights estimates, 12GB of DRAM for the iPhone 17 Pro cost Apple $39 last year. However, for the iPhone 18 Pro, the cost of the same amount of DRAM could soar to $145. Likewise, 256GB of flash storage that previously cost $13 could now cost around $51. Producing a base iPhone 17 Pro reportedly cost Apple around $582, but TechInsights estimates that the production cost of the iPhone 18 Pro could rise to $726. If Apple wants to maintain the roughly 47% profit margin it enjoys on the iPhone 17 Pro, the base price of the iPhone 18 Pro would need to reach $1,371. After standard pricing adjustments, customers could end up paying around $1,299 for the base model. However, that may not be the end of the story. As we previously reported, the iPhone 18 Pro is said to feature a variable-aperture lens, which could cost Apple at least 50% more than the current camera system. The estimated $1,299 price tag does not include the additional cost of this upgraded camera hardware. Once that expense is factored in, the base model could cost at least $1,399. A $1,399 price tag for the base iPhone 18 Pro would represent a significant increase over the current $1,099 starting price of the iPhone 17 Pro. If Apple wants to keep its upcoming iPhones competitive, it may need to accept lower profit margins.
    • Oh man, but what if I have the PS3 version?
    • Floorp 12.15.0 by Razvan Serea Floorp is a cutting-edge web browser that combines the trusted foundation of Mozilla's Firefox with a unique Japanese perspective, offering users an exceptional online experience. This open-source browser prioritizes privacy, customization, and security. Floorp is transparent, with no user tracking or data sharing, and it's completely open source. With a strict no-tracking policy and full transparency, your personal information remains private. As an open-source project, Floorp not only shares its source code but also its build environment, inviting users to contribute and build their unique versions. The regular updates, based on Firefox ESR, ensure that you always have the latest features and security enhancements. Floorp key features: Strong Tracking Protection: Floorp offers robust tracking protection, safeguarding users from malicious tracking and fingerprinting on the web. Flexible Layout: Customize Floorp's layout to your heart's content, including moving the tab bar, hiding the title bar, and more for a personalized browsing experience. Switchable Design: Choose from five distinct designs for the Floorp interface, and even switch between OS-specific designs for a unique look Regular Updates: Based on Firefox ESR, Floorp receives updates every four weeks, ensuring up-to-date security even before Firefox's releases. No User Tracking: Floorp prioritizes user privacy by abstaining from collecting personal information, tracking users, or selling user data, with no affiliations with advertising companies. Completely Open Source: The full source code for Floorp is open to the public, allowing transparency and enabling anyone to explore and build their own version. Dual Sidebar: Floorp features a versatile built-in sidebar for webpanels and browsing tools, making it perfect for multitasking and quick access to bookmarks, history, and websites. Flexible Toolbar & Tab Bar: Customize your browser with Tree Style Tabs, vertical tabs, and bookmark bar modifications, catering to both beginners and experts in customization. User-Centric Web Experience: Floorp prioritizes user privacy and collaboratively blocks harmful trackers. Floorp 12.15.0 changelog: Refine appearance of Start top sites and Hub sidebar by @CutterKnife in #2435 Improvement command pallete by @Walkmana-25 in #2429 Fix gesture command by @Walkmana-25 in #2425 Add Mac OS formatting for modifier keys in shortcut editor by @Walkmana-25 in #2424 refactor: bridge as little by @nyanrus in #2416 fix(pwa): follow Firefox 150 ShellService API changes (Bug 1985098) by @Ryosuke-Asano in #2409 feat(notes): Desktop向けThree-Way Merge Sync実装 by @Ryosuke-Asano in #2402 fix(pages-settings): resolve Invalid Hook Call error in SortableContext by @Ryosuke-Asano in #2350 README: fix signpath avatar url by @CutterKnife in #2453 Enhance command palette with new actions by @Walkmana-25 in #2449 feat(split-view): implement tab drop functionality with overlay and new window zone by @Ryosuke-Asano in #2445 fix: restore 'Hide Interface', 'Toggle Navigation Panel', and 'Rest Mode' keyboard shortcuts by @Ryosuke-Asano in #2458 fix: prevent unified extensions panel from closing on bottom navbar (#2079) by @Ryosuke-Asano in #2462 fix: prevent workspace system from overriding SessionStore tab selection on startup by @Ryosuke-Asano in #2461 fix: prevent multi-row tabs from disappearing when sidebar opens website by @Ryosuke-Asano in #2460 fix: prevent private container tab from saving first page to history by @Ryosuke-Asano in #2459 fix: prevent browser close when container tab is the only tab open by @Ryosuke-Asano in #2465 Resolve conflicts for #2467: Add split-view mouse gesture commands by @Ryosuke-Asano in #2472 fix(os-server): auto-generate auth token on enable by @Ryosuke-Asano in #2471 fix(settings): change broken link to Floorp Docs by @regularentropy in #2477 Enhanced search functionality in the command palette — now supports English keywords, Japanese morphological analysis, and hiragana search by @Walkmana-25 in #2470 fix(patches): align Gecko patches with Linux CI runtime by @Ryosuke-Asano in #2482 feat(pwa): add Firefox Container support for PWA apps by @Ryosuke-Asano in #2443 fix(statusbar): add event listener for buttons in status bar by @greeeen-dev in #2484 Download: Floorp 64-bit | 95.0 MB (Open Source) Links: Floorp Website | Github Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Google Gemini co-lead Noam Shazeer is leaving for OpenAI by Pradeep Viswanathan Noam Shazeer is best known as one of the co-authors of the 2017 “Attention Is All You Need” paper, which introduced the Transformer architecture that now powers most large language models. He also worked on several major Google AI projects, including LaMDA, before leaving the company in 2021 to co-found Character.AI. He also authored the Sparsely-gated Mixture of Experts (2016) paper, which is popular among the AI community. After falling behind OpenAI and Anthropic a couple of years ago, Google brought Shazeer back in 2024 as part of a major deal with Character.AI. Through this deal, along with Noam, several other researchers returned to Google DeepMind. More recently, he was a vice president of engineering at Google and a technical co-lead for Gemini. Today, Noam Shazeer announced on X that he is leaving Google and joining OpenAI. In his post, Shazeer said it was a difficult decision to move on, adding that he was proud of the Google team and what it had built together. OpenAI CEO Sam Altman welcomed the move with a post of his own, saying Shazeer was one of the people he had most wanted to work with since OpenAI’s early days. Google has made strong progress with Gemini over the past year, closing the gap with OpenAI in several areas. But losing Noam Shazeer is a major talent setback for them, especially after bringing him back less than two years ago by spending a fortune. For OpenAI, the hire adds one of the industry’s most experienced language model researchers to a team that is already pushing ahead with ChatGPT, Codex, and its next generation of frontier models.
  • Recent Achievements

    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
    • Week One Done
      With What earned a badge
      Week One Done
    • Week One Done
      Harris Gilbert earned a badge
      Week One Done
    • One Month Later
      Vincian earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      541
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      85
    4. 4
      ATLien_0
      64
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!