Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Can't get BIND to respond (dummy-level answer please!)

Posted on 2010-01-06
7
Medium Priority
?
343 Views
Last Modified: 2013-11-15
I am running a dedicated LAMP server that uses Ubuntu.

I am trying to run my own DNS on it, so, with the help of WebMin, have installed & begun configuring BIND.

bind appears to start OK, but I can't query it, either by the server's public IP or 127.0.0.1.

What am I doing wrong?

Thanks!
me@mybox:/etc/init.d$ sudo /etc/init.d/bind9 start
[sudo] password for me:
 * Starting domain name service... bind                                  [ OK ]
me@mybox:/etc/init.d$ nslookup help.eboardit.com MyPublicIP
;; connection timed out; no servers could be reached

me@mybox:/etc/init.d$ nslookup help.eboardit.com 127.0.0.1
;; connection timed out; no servers could be reached

Open in new window

0
Comment
Question by:Daniel Wilson
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:sakman
ID: 26195622
Bind is looking for a name server in /etc/resolv.conf.  Either that file doesn't exist or it is not configured correctly.
0
 
LVL 32

Author Comment

by:Daniel Wilson
ID: 26195678
OK, do I need to add my IP as a nameserver here?

me@mybox:/etc$ cat resolv.conf
search mybox
nameserver xxx.xxx.xxx.7

Open in new window

0
 
LVL 4

Accepted Solution

by:
sakman earned 2000 total points
ID: 26195715
Yup.  There's also stuff to be done with the configuration files in /etc/bind but I'm guessing you've already done that.

A very detailed guide on configuring an Ubuntu DNS is at:
https://help.ubuntu.com/community/BIND9ServerHowto


0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 32

Author Comment

by:Daniel Wilson
ID: 26195717
are you sure /etc/resolv.conf is the right answer?

According to http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch18_:_Configuring_DNS

The /etc/resolv.conf File
DNS clients (servers not running BIND) use the /etc/resolv.conf file to determine both the location of their DNS server and the domains to which they belong. The file generally has two columns; the first contains a keyword, and the second contains the desired values separated by commas. See Table 18.1 for a list of keywords.
But my nslookup query specifies the server.  It should be independent of the regular client setting.
0
 
LVL 32

Author Comment

by:Daniel Wilson
ID: 26195814
Access to resolv.conf is denied :(

I would need to turn some service off, right?  Bind?  Or something else?

me@mybox:/etc$ sudo echo nameserver xxx.xxx.xxx.49 >> resolv.conf
-bash: resolv.conf: Permission denied

Open in new window

0
 
LVL 32

Author Closing Comment

by:Daniel Wilson
ID: 31673766
Looks like I had some of the config messed up... still a bit confused, but thanks for your help!
0
 
LVL 4

Expert Comment

by:sakman
ID: 26195976
Yes and no(-ish).  The applications on your server that rely on name services (web browser, for example) don't know your server is a name server.  They just use the resolver to look up names.

Now, I did "blip" over the server specification on your line: nslookup help.eboardit.com 127.0.0.1while reading it.  I don't know if your query is failing because of some other configuration error.  Off hand, it sounds like the name server isn't running.  If so there is probably stuff being logged to an error log somewhere.  

I would still write an /etc/resolv.conf and try some simple lookups, starting with hosts on your local network.


0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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