LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-22-2010, 04:58 AM   #1
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Rep: Reputation: 0
dns caching server issue


hi. i have installed bind on my virtual machine of centos on my windows system. after installing and making necessary changes i started the service. Now after checking the status of the named the two lines appear as shown below
rndc: no server specified and no default
named is pid (number) running
and the server is not caching and that i checked using dig
dig always gives me the defautl gateway address or the proxy server i am using. any one would like to shed some light of experience on that
 
Old 12-22-2010, 06:59 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
bind for caching dns

The better solution is to install and configure DNSMASQ instead of bind. It is specifically made for what you want to do, and that makes it much easier.
 
Old 12-22-2010, 08:34 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
i have installed bind on my virtual machine of centos on my windows system
I am curious as what your objective for doing so is and was wondering if you would please elaborate on your goals? A name server is (all but) a requirement for proper network and for Internet access. Consequently, it is something that should really be run on a dedicated platform that will have high up time and sufficient resources to handle the load. This is not what I think of when you say running Linux in a virtual machine inside of Windows.

The "rndc: no server specified and no default" sounds like you have something set wrong in one of the the named.conf files. Look in your system log, daemon log, or if you enabled it in your Bind log for error messages. You may need to "restart" bind and then look for an error messages. You can post the errors and your configuration files here if you would like help resolving the problem.
 
Old 12-23-2010, 05:18 AM   #4
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Original Poster
Rep: Reputation: 0
I am doing this just on experiemental basis and in future I am going to run it on a proper platform like you just said Mr. Noway
 
Old 12-23-2010, 08:07 AM   #5
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
That is a perfectly acceptable and a very worthy goal. I asked mostly because if your intent was educational, simply working around the problem (e.g. using DNSMasq) doesn't achieve much. With that in mind, lets see if we can debug what is happening.

For starters, what is in your logs after you restart Bind? Look in /var/log/syslog or /var/log/messages (whichever you have) or possibly even daemon.log. You can post the results in a code block or as an attachment to your post. Search for either named or bind and see what kind of error you are getting. Like I said in my earlier post, you probably have an error in you configuration file, but you may also have a permissions problem, which could be related to not having the Bind user configured right. When bind tries to start it will create some files in /var/run/pid and if it can't then you can get this error too. You can also run into apparent permissions issues if you have SELinux or Apparmour running that prevents access to the directory.

The first step to diagnose this will be to get the log information.

Last edited by Noway2; 12-23-2010 at 08:08 AM. Reason: typo
 
Old 12-24-2010, 12:47 AM   #6
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Noway2 View Post
That is a perfectly acceptable and a very worthy goal. I asked mostly because if your intent was educational, simply working around the problem (e.g. using DNSMasq) doesn't achieve much. With that in mind, lets see if we can debug what is happening.

For starters, what is in your logs after you restart Bind? Look in /var/log/syslog or /var/log/messages (whichever you have) or possibly even daemon.log. You can post the results in a code block or as an attachment to your post. Search for either named or bind and see what kind of error you are getting. Like I said in my earlier post, you probably have an error in you configuration file, but you may also have a permissions problem, which could be related to not having the Bind user configured right. When bind tries to start it will create some files in /var/run/pid and if it can't then you can get this error too. You can also run into apparent permissions issues if you have SELinux or Apparmour running that prevents access to the directory.

The first step to diagnose this will be to get the log information.
Well i have tried dnsmasq and it is working fine. but i want to use and work with bind. As you asked for the logs here is the link.
http://www.4shared.com/file/AaoHvNGU/testlogs.html
check out the logs and
see if you can detect the problem
 
Old 12-26-2010, 08:04 PM   #7
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Looking through the log files I see several errors that are causing you problems. Here are some examples:
You have a syntax error in your named.conf on or near line 66
Code:
Dec 23 14:39:05 test named: /etc/named.conf:66: missing ';' before 'internal'
Dec 23 14:39:05 test named: /etc/named.conf:66: open: /var/named/my.internal.zone.db
Dec 23 14:39:05 test named: };
Dec 23 14:39:05 test named: view : file not found
Dec 23 14:42:18 test named: /var/named/my.internal.zone.db:1: unknown option '@'
Dec 23 14:42:18 test named: /etc/named.conf:65: unexpected token near '}'
Another error in named.conf *note there are others, such as on line 14
Code:
/etc/named.conf:57: open: /var/named.root: file not found
Dec 23 14:25:53 test named: /var/named/named.root:2: '}' expected near ';'
Dec 23 14:28:41 test named: /etc/named.root:2: '}' expected near ';
Not really an error, but a possible indication your header isn't quite right
Code:
slaves/my.ddns.internal.zone.db:1: no TTL specified; using SOA MINTTL instead
Are you trying to run a master and slave server?
Code:
zone my.slave.internal.zone/IN/internal: refresh: non-authoritative answer from master 127.0.0.1#53 (source 0.0.0.0#0)
Perhaps ok, but consider it a warning
Code:
zone my.slave.internal.zone/IN/internal: refresh: non-authoritative answer from master 127.0.0.1#53 (source 0.0.0.0#0)
This makes it sounds like Bind may not be running as their is either a permissions problem or the port is still closed. I somewhat expect the errors on ipv6 addresses, but not on ipv4. You may have a permissions problem because there were some messages about /var/run (the pid) location. Make sure your permissions are set on the directory and the group/user (named) is set on bind.
Code:
connection refused resolving 'mirrors.ispros.com.bd/AAAA/IN': 192.5.5.241#53
Be careful with this one. I don't think want to run a PUBLICLY authoritative server, at least yet:
Code:
listening on IPv4 interface eth0, 200.200.200.114#53
Here are a couple of links to some DNS how-tos that I found very helpful. With these, I had bind up and running within a couple of hours after installing Ubuntu Server (command line only) on my first attempt.
Link1: How-To on Bind
Link2: Making bind work with DHCP for dynamic updates on your LAN
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS caching server DanielTan Linux - Networking 2 01-10-2006 11:42 PM
DNS Caching Server Itsu Linux - Networking 2 10-06-2004 11:49 PM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
No IP and Caching DNS server fmertus Linux - Networking 2 06-27-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration