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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2011, 01:11 PM   #1
JensonSandpiper
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
BIND Configuration issue


Hi there.

I'm having trouble getting BIND to work on ubuntu.

It won't resolve my domain properly, or any entries i've manually added in the zone file.

My zone file is:


bendall.com. IN SOA bendall.com. admin.bendall.com. (
2011052101
28800
3600
604800
38400
)
bendall.com. IN NS ns1.bendall.com.

www IN A 192.168.1.104
ns1 IN A 192.168.1.104

bendall.com 172800 IN A 192.168.1.104

and my named.conf.local file is:



zone "bendall.com" {
type master;
file "/etc/bind/zones/bendall.com.db";
};

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

I followed a tutorial to the letter and it told me to use the named.conf.local instead of named.conf, but there's an 'include' statement pointing to the named.conf.local.

Can anyone help?

Thanks.
 
Old 05-21-2011, 03:31 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi and welcome to LQ

Could you define what you mean by:
Quote:
I'm having trouble getting BIND to work on ubuntu.
It won't resolve my domain properly, or any entries i've manually added in the zone file.
Any dig output would be useful to help you on this
Code:
dig ns1.bendall.com @192.168.1.104
Regards
 
Old 05-24-2011, 03:09 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi

Your zone file should look like this and only this:
Code:
; Start of Authority (SOA) records.
$TTL 1D
@  IN  SOA  ns.example.com. hostmaster.example.com.  (
                                      2011052401       ; Serial
                                      12H     ; Refresh
                                      2H     ; Retry
                                      604800    ; Expire
                                      1D )   ; TTL

; Name Server (NS) records.
                        NS   ns.example.com.

; Mail Exchange (MX) records.
example.com.            IN      MX   10 mail.example.com

; Address (A) records.
example.com.                     A       12.345.678.918
mail                            A       12.345.678.918
ns                              A       12.345.678.918
ftp                             A       12.345.678.918
www                             A       12.345.678.918

; Aliases in Canonical Name (CNAME) records.
and remember to change example.com to your domain name, 2011052401 ; Serial to appropriate date value (read from right to left is a date 05-24-2011 # 01) and 12.345.678.918 to your IP.

Last edited by lithos; 05-24-2011 at 03:11 PM.
 
  


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
bind Configuration farooqhussain Linux - Networking 2 09-08-2008 09:42 AM
Bind 9.3 configuration metallica1973 Linux - Server 2 03-20-2008 07:31 AM
Bind Configuration namit Linux - Software 1 04-25-2007 10:03 PM
FC 6 BIND Configuration titel Linux - Newbie 2 12-12-2006 10:08 PM
Bind configuration lmcilwain Linux - Software 1 01-31-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:35 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