LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-05-2006, 09:17 PM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
BIND DNS -- Zone


Hey guys,

I am having a bit of trouble with my newly purchased domain. I have have a website running on my Debian server, running apache. I have created a zone file that I believe is correct:

$TTL 1d
@ IN SOA inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


IN NS www 24.108.195.241.

I would really like to have my website accessible with the purchased domain. Thank guys you are going to save me
 
Old 10-06-2006, 02:03 AM   #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
Quote:
IN NS www 24.108.195.241.
This is wrong. You have to define your dns server (I assume it's named www) and then the IP of www. E.g.
Code:
IN NS www.inescapable.ca.
www IN A 24.108.195.241
 
Old 10-06-2006, 07:34 AM   #3
bonowax
Member
 
Registered: Jul 2006
Location: Suburbs of Lisbon, Portugal
Distribution: Slackware, FreeBSD
Posts: 75

Rep: Reputation: 16
...And I believe you're missing the responsible host and user for the domain... I think it should go after the domain name being specified in the SOA record...

Cheers
 
Old 10-06-2006, 03:00 PM   #4
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Bathory, I am going to give that try right now. Thanks. I will keep both of you posted. Cheers.
 
Old 10-06-2006, 03:25 PM   #5
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Okay guys, this is the output:

dns_rdata_fromtext: master/inescapable.ca:3: near '3h': not a valid number
zone inescapable.ca/IN: loading master file master/inescapable.ca: not a valid number
_default/inescapable.ca/in: not a valid number
[FAILED]
[root@Burns michael]#

I am pretty sure 3h is a valid number. Any thoughts?
 
Old 10-07-2006, 12:36 AM   #6
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Rep: Reputation: 30
Quote:
Originally Posted by inescapeableus
Hey guys,

I am having a bit of trouble with my newly purchased domain. I have have a website running on my Debian server, running apache. I have created a zone file that I believe is correct:

$TTL 1d
@ IN SOA inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


IN NS www 24.108.195.241.

I would really like to have my website accessible with the purchased domain. Thank guys you are going to save me
i see a couple problems. you didnt specify the domain at the start of your SOA record. also, you didnt mention the contact for the domain. try this:

$TTL 3600
nescapable.ca IN SOA nescapable.ca. webmaster.inescapable.ca (
.la.us. (
 
Old 10-07-2006, 12:05 PM   #7
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
okay this is what I have in my configuration

$TTL 1d
@ IN SOA inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


IN NS www.inescapable.ca.
www IN A 24.108.195.241

and my error is

[root@Burns michael]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
dns_rdata_fromtext: master/inescapable.ca:3: near '3h': not a valid number
zone inescapable.ca/IN: loading master file master/inescapable.ca: not a valid number
_default/inescapable.ca/in: not a valid number
[FAILED]
[root@Burns michael]#
 
Old 10-07-2006, 01:40 PM   #8
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Rep: Reputation: 30
Quote:
Originally Posted by inescapeableus
okay this is what I have in my configuration

$TTL 1d
@ IN SOA inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


IN NS www.inescapable.ca.
www IN A 24.108.195.241

and my error is

[root@Burns michael]# /etc/init.d/named start
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
dns_rdata_fromtext: master/inescapable.ca:3: near '3h': not a valid number
zone inescapable.ca/IN: loading master file master/inescapable.ca: not a valid number
_default/inescapable.ca/in: not a valid number
[FAILED]
[root@Burns michael]#

read my above message
 
Old 10-07-2006, 05:16 PM   #9
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Alright, here is the suggested updates.

$TTL 1d
@ inescapable.ca IN SOA webmaster.inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


IN NS www.inescapable.ca.
www IN A 24.108.195.241


Thanks again.
 
Old 10-07-2006, 05:18 PM   #10
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
and with that recored I get this error.

master/inescapable.ca:2: unknown RR type 'inescapable.ca'
zone inescapable.ca/IN: loading master file master/inescapable.ca: unknown class/type
_default/inescapable.ca/in: unknown class/type
[FAILED]
[root@Burns michael]#


Thanks for all your time, I will return the favour anytime I can
 
Old 10-07-2006, 06:33 PM   #11
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Hi,
Quote:
Originally Posted by inescapeableus
master/inescapable.ca:2: unknown RR type 'inescapable.ca'
that's because you have it all mixed up...

For starters and to understand what's going on I'd suggest to be a bit more verbose and "canonical":
Code:
$TTL 1d
@ IN SOA ns.inescapable.ca. hostmaster.inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

    IN NS ns.inescapable.ca.

ns  IN A 24.108.195.241
www IN A 24.108.195.241
Which -- if you really want -- can of course be simplified to
Code:
$TTL 1d
@ IN SOA www.inescapable.ca. hostmaster.inescapable.ca. (
2006100201 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

    IN NS www.inescapable.ca.

www IN A 24.108.195.241

Cheers
Rupert

PS: the "@" replaces the domain name. So it's either "@" or "inescapable.ca", but not both!

Last edited by rupertwh; 10-07-2006 at 06:38 PM.
 
Old 10-07-2006, 07:01 PM   #12
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Alright Rupert,

I have taken note of your changes and applied them. This is slowly making more sense to me here. All the text that I have covered is only applicable to LAN's. Anyway with the follwing:

$TTL 1d
@ IN SOA www.inescapable.ca. hostmaster.inescapable.ca. ( 2006100201 ; serial 3h ; refresh 1h ; retry 1w ; expiry 1d ) ; minimum

IN NS www.inescapable.ca. www IN A 24.108.195.241

I get the following error:

master/inescapable.ca:11: unknown RR type 'www'
zone inescapable.ca/IN: loading master file master/inescapable.ca: unknown class/type
_default/inescapable.ca/in: unknown class/type

Thanks again!
 
Old 10-07-2006, 07:25 PM   #13
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
@ IN SOA www.inescapable.ca. hostmaster.inescapable.ca. ( 2006100201 ; serial 3h ; refresh 1h ; retry 1w ; expiry 1d ) ; minimum
Above is unbalanced parens. The first ; after serial number negates the rest of the line. Place each SOA entry on its own line as shown in other posts.
Quote:
IN NS www.inescapable.ca. www IN A 24.108.195.241
As the error states... www is unknown. Why? You should only list one RR record per line.

Again, follow the example syntax shown in other posts
 
Old 10-07-2006, 07:41 PM   #14
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Thanks for the insight Scowles. I now have named running, next I have to get my website associated with it
 
Old 10-07-2006, 08:53 PM   #15
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Great, looks like everything is setup. Does anybody know how long it takes for a website to become public?
 
  


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 Dns zone lhrt Linux - Software 2 09-26-2006 08:45 AM
Bind DNS Slave zone macadam Linux - Networking 2 03-02-2005 06:49 AM
Dyn. update of DNS zone in BIND 9.2.1 on RH8.0? Tom Bombadil Linux - Networking 0 03-11-2004 10:44 AM
BIND DNS Problems with Zone file and Config Init-0 Linux - Networking 6 07-30-2003 04:58 PM
Bind and DNS information conf files and zone files aaronluke Linux - General 1 10-13-2002 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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