Solved

Check if DNS is installed in Ubuntu

Posted on 2014-03-10
12
519 Views
Last Modified: 2014-03-17
I need a command to find out if DNS is installed on ubuntu.

I installed and uninstalled bind9 on ubuntu.., I run the following command before and after bind9 installed, I got the same output:

dpkg -s bind9

apt-cache search bind9

I wonder what is the right command to find out if bind9 is installed or not.

Thanks
0
Comment
Question by:jskfan
12 Comments
 
LVL 15

Assisted Solution

by:achaldave
achaldave earned 167 total points
ID: 39918800
Try following commands

dpkg –get-selections

dpkg –get-selections | grep bind
0
 

Author Comment

by:jskfan
ID: 39918984
command not found

dpkg
0
 
LVL 28

Assisted Solution

by:serialband
serialband earned 166 total points
ID: 39919234
The command is dpkg.  The option is –get-selections.

You placed the space incorrectly in your command.
0
 
LVL 61

Accepted Solution

by:
gheist earned 167 total points
ID: 39919241
dpkg --get-selections
0
 

Author Comment

by:jskfan
ID: 39919290
ok 2 hyphens before get
0
 

Author Comment

by:jskfan
ID: 39919301
dnsdns
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:jskfan
ID: 39919302
in which server is DNS installed , per the above snapshots ?
0
 
LVL 61

Expert Comment

by:gheist
ID: 39919306
It is the rich text box, fame should go to one that typed a loooong hyyypheeen first ;)

you can see with
netstat -anpu
if anything on port 53

or in pstree try to find process called "named"
0
 
LVL 61

Expert Comment

by:gheist
ID: 39919336
Your picture has so huge font.
Please OCR and googel yourself. Really i cannot walk 5m from monitro to see your letters....
0
 

Author Comment

by:jskfan
ID: 39919421
the fonts look ok to me
0
 

Author Comment

by:jskfan
ID: 39919428
I guess the one that shows plain bind9 , is the one that DNS server installed on it
0
 

Author Closing Comment

by:jskfan
ID: 39934239
dpkg --get-selections

Thank you Guys!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now