Problem Configuring DNS on ubuntu server running as a virtual machine
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:ifconfig looks like:named.conf.local looks like:named.conf.optionsdomain.com.db looks like:rev.0.168.192.in-addr.arpa looks like:resolv.conf looks like:hosts.png looks like:
while testing it looks like:
I don't know whats wrong with it. Please suggest me something. Any help is appreciated.
101 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.1Here is the solution:
first of all network settings for dns server:network settings on the client machine:Interface file(DNS side):named.conf.options file:named.conf.local file:forward zone file:reverse zone file:Interface file(client side)
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.