Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Problem Configuring DNS on ubuntu server running as a virtual machine

Writer Emily Wong

I am running "ubuntu-14.04-server-amd64" server as a virtual machine via virtual box on my MAC OSX 10.9.X. I am trying to learn how to configure DNS via linux. I crawled websites for continuously for two days but no success.Following are the snapshots of my work.

/etc/network/interfaces looks like:

enter image description here

ifconfig looks like:

enter image description here

named.conf.local looks like:

enter image description here

named.conf.options

enter image description here

domain.com.db looks like:

enter image description here

rev.0.168.192.in-addr.arpa looks like:

enter image description here

resolv.conf looks like:

enter image description here

hosts.png looks like:

enter image description here

while testing it looks like:

enter image description here

I don't know whats wrong with it. Please suggest me something. Any help is appreciated.

10

1 Answer

After trying for hours and hours, I was finally able to solve the problem and get DNS working. The major problem was the settings of the virtual box machine. Earlier I wasn't paying much attention to them but as suggested by @abdulkadir(see comments), I spent time there and got the success.

network details

network: 192.168.2.0/24
gateway/router : 192.168.2.1

Here is the solution:

first of all network settings for dns server:

enter image description here

network settings on the client machine:

enter image description here

Interface file(DNS side):

enter image description here

named.conf.options file:

enter image description here

named.conf.local file:

enter image description here

forward zone file:

enter image description here

reverse zone file:

enter image description here

Interface file(client side)

enter image description here

This setup worked absolutely fine for me. I would specifically like to mentions that I didn't make any changes to "resolv.conf", "hosts" or "hostnames" file. Some of the sources on the web were suggesting that.

Thanks.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy