LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-16-2003, 01:49 AM   #1
coffee9876
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
Angry bind and named and "rndc: connect failed: connection refused"


Hello.
I'm trying to set up my linux box to be an internet nameserver. I"ve got web traffic, defined at networksolutions, to ns1.coffee9876.com. at 63.226.001.1.

I think I need Bind/named to take traffic for 63.226.1.1 and make it act as name server.
Sound right?
--------------------------------
In Services, it says that named status is "rndc: connect failed: connection refused"

In /var/log/messages

Dec 14 09:46:20 multivac named[10550]: starting BIND 9.2.1 -u named
Dec 14 09:46:20 multivac named[10550]: using 1 CPU
Dec 14 09:46:20 multivac named: named startup succeeded
Dec 14 09:46:20 multivac named[10550]: loading configuration from '/etc/named.conf'
Dec 14 09:46:20 multivac named[10550]: no IPv6 interfaces found
Dec 14 09:46:20 multivac named[10550]: listening on IPv4 interface lo, 127.0.0.1#53
Dec 14 09:46:20 multivac named[10550]: listening on IPv4 interface eth0, 63.226.1.1#53
Dec 14 09:46:20 multivac named[10550]: could not configure root hints from 'named.ca': file not found
Dec 14 09:46:20 multivac named[10550]: loading configuration: file not found
Dec 14 09:46:20 multivac named[10550]: exiting (due to fatal error)
Dec 14 09:50:00 multivac named: named reload failed

I'm a newbie. I'm baffled. What do I need to check or change to get this to run? What could be broken? How do I get named to run? Any suggestions?
Thanks
 
Old 12-16-2003, 02:11 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You're very confused. Name Service and web traffic are two very different things.

Domain Name Service (DNS) is a system for translating Internet names into IP addresses. Web traffic generally means Hyper Text Transfer Protocol and refers to the World Wide Web of interconnected web sites. A DNS daemon runs name service (such as BIND, djbdns, etc) and a HTTP daemon runs web service (such as Apache).

Chances are that Network Solutions will host your DNS for you. You don't necessarily need to setup your own (although it could be educational). What you need to know is whether you setup your own IP as your authoritative DNS server or not (look in your account on Network Solutions to see what is listed as your authoritative DNS servers). If you only want to display a web page, then you only need httpd listening for connections.

As for your error above, you do not have a file named "named.ca" in the proper directory. You need to download the list of "root servers" from Internic, which you can do like this:
wget ftp://ftp.internic.net/domain/named.root
You need to put it in a directory, such as /var/named/, and you need to edit your /etc/named.conf file to use /var/named/named.root as your "hints" file for the "." zone. That's the bare minimum just to get a DNS server working to resolve outside names. If you want to setup your own DNS, you'll have to do a lot more work to configure it.
 
Old 12-16-2003, 10:21 AM   #3
coffee9876
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Chort,
Thanks for the help! While it did not fix the problem, it did at least cause different ones! I'm on the right track!

Dec 16 08:16:23 multivac named: named shutdown failed
Dec 16 08:16:25 multivac named[3725]: starting BIND 9.2.1 -u named
Dec 16 08:16:25 multivac named[3725]: using 1 CPU
Dec 16 08:16:25 multivac named[3725]: loading configuration from '/etc/named.conf'
Dec 16 08:16:25 multivac named[3725]: /etc/named.custom:8: option 'allow-update' is not allowed in 'hint' zone '.'
Dec 16 08:16:25 multivac named[3725]: /etc/rndc.key:1: key 'rndc-key': already exists
Dec 16 08:16:25 multivac named[3725]: loading configuration: failure
Dec 16 08:16:25 multivac named[3725]: exiting (due to fatal error)
Dec 16 08:16:25 multivac named: named startup succeeded
 
Old 12-16-2003, 10:50 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Your "." zone should just be like this:
Code:
    zone "." {
            type hint;
            file "standard/root.hint";
    };
(where "standard" is the path to your hints file).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
rndc: connect failed: connection refused jkmartha Linux - Software 0 06-20-2005 01:35 AM
service named error "rndc: conenct failed: connection refused" Reu Linux - General 1 07-12-2004 01:34 PM
rndc: connect failed: connection refused Justalk Linux - Software 2 06-28-2004 03:45 PM
rndc: connect failed: connection refused Atroxic Linux - Networking 1 10-24-2003 01:01 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration