Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

9000

macrumors 6502a
Original poster
Sep 29, 2013
519
0
Hyrule
I see a DNS service on Snow Leopard Server running on my Mac Mini. It lets me put in forwarding addresses that it'll use if it gets a DNS lookup it cannot handle itself. And I'm using it for domain name lookups (that is, if I visit macrumors.com, my computer asks the DNS for its IP address). But I don't understand what the service does exactly.

Now, the question is: When it gets requests that it must ask another server for, does it then cache these in some semi-permanent cache that it'll use in the future? My goal is to get a speedy local DNS that usually won't rely on outside servers.
 

mackpro

macrumors member
Feb 1, 2008
77
0
Indiana University
I see a DNS service on Snow Leopard Server running on my Mac Mini. It lets me put in forwarding addresses that it'll use if it gets a DNS lookup it cannot handle itself. And I'm using it for domain name lookups (that is, if I visit macrumors.com, my computer asks the DNS for its IP address). But I don't understand what the service does exactly.

Now, the question is: When it gets requests that it must ask another server for, does it then cache these in some semi-permanent cache that it'll use in the future? My goal is to get a speedy local DNS that usually won't rely on outside servers.

Great question! Bump!
 

Peace

Cancelled
Apr 1, 2005
19,546
4,557
Space The Only Frontier
You guys answered your own question. A DNS translates a name into an IP. It stores IP's associated with a name and when you type in the name it takes you to the name.

This is why some people flush out the DNS on occasion because the name may be associated with a different IP number.

Yes. A DNS server does have a cache of numbers associated with a name.
 

9000

macrumors 6502a
Original poster
Sep 29, 2013
519
0
Hyrule
You guys answered your own question. A DNS translates a name into an IP. It stores IP's associated with a name and when you type in the name it takes you to the name.

This is why some people flush out the DNS on occasion because the name may be associated with a different IP number.

Yes. A DNS server does have a cache of numbers associated with a name.

I didn't know it cached them. It could have been merely using other DNS services to handle requests, given my minimal knowledge about this. So it does cache them, you're saying. Do you know how frequently (if ever) it flushes this cache?
 

chris.k

macrumors member
May 22, 2013
91
1
YSSY
It flushes entires based on the "Time to live" directive told to it by the upstream DNS.

Each zone (domain) operator can suggest a suitable TTL which is included in the returned record to the querying DNS. The Zone information SOA record generally holds this record, but can be overridden per A/PTR/NS/MX etc.....

Downstream DNSs are supposed to honour this value, and flush their cache for this zone when it expires.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.