LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   BIND DNS -- Zone (https://www.linuxquestions.org/questions/linux-networking-3/bind-dns-zone-489852/)

inescapeableus 10-05-2006 09:17 PM

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 :)

bathory 10-06-2006 02:03 AM

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


bonowax 10-06-2006 07:34 AM

...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

inescapeableus 10-06-2006 03:00 PM

Bathory, I am going to give that try right now. Thanks. I will keep both of you posted. Cheers.

inescapeableus 10-06-2006 03:25 PM

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?

rsmccain 10-07-2006 12:36 AM

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. (

inescapeableus 10-07-2006 12:05 PM

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]#

rsmccain 10-07-2006 01:40 PM

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

inescapeableus 10-07-2006 05:16 PM

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.

inescapeableus 10-07-2006 05:18 PM

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 :D

rupertwh 10-07-2006 06:33 PM

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!

inescapeableus 10-07-2006 07:01 PM

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!

scowles 10-07-2006 07:25 PM

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

inescapeableus 10-07-2006 07:41 PM

Thanks for the insight Scowles. I now have named running, next I have to get my website associated with it :D

inescapeableus 10-07-2006 08:53 PM

Great, looks like everything is setup. Does anybody know how long it takes for a website to become public?


All times are GMT -5. The time now is 12:17 PM.