Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up a Ubuntu 10.04 Virtual Box with a Bind9 DNS server. The Box has a NAT Network connection for internet access and a host-only adapter for static ip connections from the host (OSX Lion). Thats the only way i managed to get internet and static ip inside the box, guess there is a better one ... The DNS works fine from inside the virtualbox, but not from the host. The http and ftp on the guest system is accessible via both addresses, so connection between host and guest are fine i guess. I tried to add both IP's as name servers. I'm completely new to Bind9 and DNS configuration. Anybody has a hint for me whats wrong? Or how i have to configure the DNS server?

share|improve this question
Could you show the BIND config you have? At a guess I'd say the IP the outside machine comes at has not been added to the range of addresses that can query the BIND. If you don't know much about DNS, I'd suggest getting the O'Reilly book on DNS & BIND - it gives a great intro to how DNS works, then great info on how BIND works, and how to configure it. – Bart B Jun 8 '12 at 15:58

Perhaps the DNS only listen to localhost. Check in the VM :

# netstat -naptu | grep 53

It should show you whether port 53 only listen to localhost ( If this is the case then you have to check your configuration on allow-query.

Reference on allow-query :

share|improve this answer

Your VirtualBox network configuration sounds weird. The best approach is to configure bridged networking, which puts the VM directly on the LAN. The static IP should just be configured inside the VM.

DNS operates on port 53, mostly UDP but TCP as well. Test basic connectivity with ping and then telnet on port 53.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.