• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 550
  • Last Modified:

Configuring dns in ubuntu

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
jskfan
Asked:
jskfan
  • 3
  • 3
  • 2
4 Solutions
 
N-WCommented:
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
 
gheistCommented:
You can always type named-checkconf -z
And try to paste text, i did not read past 2 images.
0
 
jskfanAuthor Commented:
after I ran this command:
named-checkconf -z

dns
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
N-WCommented:
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
 
jskfanAuthor Commented:
Correct! it worked…
nslookup works for Name to IP resolution but not the other way around..

dns
0
 
N-WCommented:
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
 
jskfanAuthor Commented:
I corrected the rev.zone file name and restarted the bind9 service…and now it is working
0
 
gheistCommented:
you need to reload bind service for zone change, then there is no unserviced packets
restart is for patching and configuration changes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now