Solved

Configuring dns in ubuntu

Posted on 2014-03-10
8
507 Views
Last Modified: 2014-03-11
I have configured DNS serve in Ubuntu,apparently it is not working properly. I cannot tell what is missing.
Any help will be very much appreciated.
dnsdnsdnsdnsdnsdnsdns
0
Comment
Question by:jskfan
  • 3
  • 3
  • 2
8 Comments
 
LVL 8

Assisted Solution

by:N-W
N-W earned 375 total points
ID: 39919108
By default, BIND should log any errors to /var/log/messages. As the service is failing to start, there should be entries in the log to specify what's going wrong.

Can you try to start the service again and post any errors from the log?
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 125 total points
ID: 39919235
You can always type named-checkconf -z
And try to paste text, i did not read past 2 images.
0
 

Author Comment

by:jskfan
ID: 39919257
after I ran this command:
named-checkconf -z

dns
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 8

Assisted Solution

by:N-W
N-W earned 375 total points
ID: 39919281
You missing closing quotation marks in your named.conf.local file.
Change this:
file "/etc/bind/test.local.zone;

Open in new window

to this:
file "/etc/bind/test.local.zone";

Open in new window

0
 

Author Comment

by:jskfan
ID: 39919418
Correct! it worked…
nslookup works for Name to IP resolution but not the other way around..

dns
0
 
LVL 8

Accepted Solution

by:
N-W earned 375 total points
ID: 39919425
In your named.conf.local file, you specify that the reverse zone file is "zone.rev":
file "/etc/bind/zone.rev";

Open in new window

but in your screenshot, the file is called "rev.zone". These need to match.
0
 

Author Closing Comment

by:jskfan
ID: 39920176
I corrected the rev.zone file name and restarted the bind9 service…and now it is working
0
 
LVL 62

Expert Comment

by:gheist
ID: 39920201
you need to reload bind service for zone change, then there is no unserviced packets
restart is for patching and configuration changes
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help With Shell Script Centos 6 6 69
Error 554 5.4.6 Hop count exceeded - possible mail loop 16 102
EXCHANGE SENDER POLICY FRAMWORK 6 23
SSL/TLS - openssl troubleshooting 3 41
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question