LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-12-2008, 11:25 AM   #1
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Rep: Reputation: 30
Problem setting up DNS - Kindly help


Hello all,

I am trying to setup DNS server on Ubuntu 8.04 - AMD64 for my intranet from http://www.howtoforge.com/installing...rver-with-bind and below is the error and configuration. Studio is my server name and the IP address is 10.10.10.4. I am wondering if the file names and the entries are correct. I also have a wins server, how can i configure DNS to get the hostnames from the WINS server instead of adding them manually?


Contents of /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.10.4
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255

Contents of /etc/hosts

127.0.0.1 localhost.localdomain localhost

10.10.10.4 studio.abc.org studio
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Contents of /etc/default/bind9

OPTIONS="-u bind -t /var/lib/named"
# Set RESOLVCONF=no to not run resolvconf
RESOLVCONF=yes

Contents of /etc/bind/named.conf

zone "abc.org" {
type master;
file "/etc/bind/zones/abc.org.db";
};

zone "10.10.10.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.10.10.10.in-addr.arpa";
};

key "rndc-key" {
algorithm hmac-md5;
secret "9WNiBNj5fFyBWUxfR88nAQ==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

Contents of /etc/bind/named.conf.options. I don't have any other DNS servers in my network so i have commented all the entries except below.

forwarders {
123.123.123.123;
};

Contents of /etc/bind/zones/rev.10.10.10.in-addr.arpa

@ IN SOA studio.abc.org. root (
2006081401;
28800;
604800;
604800;
86400
)
IN NS studio.abc.org.
4 IN PTR abc.org

Contents of /etc/bind/zones/abc.org.db

abc.org. IN SOA studio.abc.org. root (

// Do not modify the following lines!
2006081401
28800
3600
604800
38400
)

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name

abc.org. IN NS studio.abc.org.
//abc.org. IN MX 10 mta.abc.org. - Dont have a mail server

// Replace the IP address with the right IP addresses.
studio IN A 10.10.10.4


/etc/init.d/bind9 restart

root@studio:/etc/bind# /etc/init.d/bind9 restart
* Stopping domain name service... bind rndc: connect failed: 127.0.0.1#953: connection refused
[fail]
* Starting domain name service... bind usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
[-p port] [-s] [-t chrootdir] [-u username]
[-m {usage|trace|record|size|mctx}]
named: extra command line arguments
[fail]

Kindly Help..
 
Old 08-13-2008, 06:29 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
I'm just guessing here, but have a look at /etc/rndc.key and /etc/rndc.conf. You should have an entry in both called 'rndc-key', not 'rndckey' or anything else. The entry in /etc/rndc.key should be identical to the corresponding rndc line you have in your named.conf.
From your error log at the bottom, I'm also guessing somethings messed up in your /etc/default/bind9 file. Do you need that OPTIONS line at all, and are you sure it is passing acceptable arguments? (specifically, -t /var/lib/named doesn't figure in the supported arguments mentioned right at the bottom of your post)
 
Old 08-13-2008, 06:32 AM   #3
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
P.S. Just had a quick look around, you might not actually have a file called rndc.key. But you probably should have an rndc.conf, and the entry there should match what's mentioned in named.conf.
 
Old 08-13-2008, 08:25 AM   #4
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
Thank you very much for the replies, my server just went down. I will setup ubuntu, configure DNS and Surely get back.

Thanks
 
Old 08-13-2008, 10:34 AM   #5
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
I have configured DNS using http://www.howtoforge.com/installing...rver-with-bind - JFYI


Quote:
Originally Posted by arungoodboy View Post
I'm just guessing here, but have a look at /etc/rndc.key and /etc/rndc.conf. You should have an entry in both called 'rndc-key', not 'rndckey' or anything else. The entry in /etc/rndc.key should be identical to the corresponding rndc line you have in your named.conf.
From your error log at the bottom, I'm also guessing somethings messed up in your /etc/default/bind9 file. Do you need that OPTIONS line at all, and are you sure it is passing acceptable arguments? (specifically, -t /var/lib/named doesn't figure in the supported arguments mentioned right at the bottom of your post)
 
Old 08-14-2008, 01:00 AM   #6
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
Adding subdomains to domain that already exists in the internet.

Hi Everybody,

I have a domain name "abcd.org" registered on the internet, website managed by an ISP and its working fine. I am planning to have an Intranet site for the students for which i am configuring DNS, can i create a domain say for example, "students.abcd.org" which would be accessible only inside the office? Coz, all the machines have access to the internet so will there be a conflict? The students should be able to access the site using their web browser through the url, http://students.abcd.org!

Kindly help as this is very crucial.
 
Old 08-17-2008, 01:51 AM   #7
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
ok, i just managed to reinstall the server and configure DNS. I am able to ping the FQDN but, the nslookup doesn't resolve the domain name.

nslookup>

>
Server: 10.10.10.4
Address: 10.10.10.4#53

** server can't find ns1.student.local.student.local: SERVFAIL

How can i resolve this? I have made the correct entries in /etc/resolv.conf

Quote:
Originally Posted by arungoodboy View Post
P.S. Just had a quick look around, you might not actually have a file called rndc.key. But you probably should have an rndc.conf, and the entry there should match what's mentioned in named.conf.

Last edited by avinash.rao; 08-23-2008 at 07:30 AM.
 
  


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
Problem connecting internet in XP, but works in Red Hat Linux 5, kindly help. yoganars2000 Linux - Networking 3 07-30-2008 12:20 PM
DNS setting problem hsfong Linux - Networking 4 09-04-2005 04:00 AM
newbie, kindly advice. Re: Setting up CA sonun Linux - Security 2 08-25-2005 10:51 PM
pattern searching - kindly help hinetvenkat Linux - Software 2 08-08-2005 11:19 PM
May I kindly ask... Wolfgang67 Linux - General 2 12-21-2003 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:58 AM.

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