Thursday, July 14, 2016

domain name system - How to minimise bind9 memory footprint?




I'm running bind 9.5.1 on debian lenny. Unfortunately the machine does not have a lot of memory (only 500MB) and with apache, db and mailserver this is getting tight. Currently bind takes about 10% and is the top consumer of memory - any clues to diminish this? Already cut down on cache, can't really find more options. Perhaps alternative dns server? It only serves a couple domains.


Answer



Yeah, BIND is a memory hog. Personally, I'm a fan of tinydns part of djbdns for low-memory footprint DNS service. It's not like BIND at all in terms of config and management, but it's damn small, quite fast, and once you get used to it, I think it's better than BIND in many ways.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...