Web Hosting Talk







View Full Version : Bind8 (version 9.1 on RH 7.2)... help needed


protector330
03-22-2002, 01:23 PM
Hello,

I'm completely new into Nameservers could you pls help me? My domain works fine with the browser if I use http://MYDOMAIN.com but with WWW. it does not :bawling: .... no idea why...

What I have/need:

ns1.MYDOMAIN.COM is pinging at -> xxx.xx.xxx.96
ns2.MYDOMAIN.COM is pinging at -> xxx.xx.xxx.102

MYDOMAIN.COM is pinging at -> xxx.xx.xxx.98
WWW.MYDOMAIN.COM -> not working


Here is what I have inside my MYDOMAIN.COM Master zone:


ttl 38400
MYDOMAIN.com. IN SOA ns1.MYDOMAIN.com. dns.MYDOMAIN.com. (
1014223425
10800
3600
604800
38400 )
MYDOMAIN.com. IN NS ns1.MYDOMAIN.com.
MYDOMAIN.com. IN NS ns2.MYDOMAIN.com.

ns1.MYDOMAIN.com IN NS xxx.xx.xxx.96
ns2.MYDOMAIN.com IN NS xxx.xx.xxx.102

MYDOMAIN.com IN A xxx.xx.xxx.98
www.MYDOMAIN.com. IN CNAME xxx.xx.xxx.98


Thanks for your help

MattF
03-22-2002, 01:25 PM
you're CNAME record is incorrect either to change to:

www.MYDOMAIN.com. IN CNAME MYDOMAIN.COM

OR if you don't want to use CNAMEs:

www.MYDOMAIN.com. IN A 205.X.X.X

not sure if a . is needed at the end, probably not???

allan
03-22-2002, 01:27 PM
Originally posted by protector330

MYDOMAIN.com IN A xxx.xx.xxx.98
www.MYDOMAIN.com. IN CNAME xxx.xx.xxx.98


A CNAME cannot point to an IP Address, so either use:


www IN CNAME mydomain.com.


or


www IN A xxx.xx.xxx.98


Either one will work.

allan
03-22-2002, 01:31 PM
Originally posted by MattF
you're CNAME record is incorrect either to change to:


Hey -- no fair, moderators have quicker reflexes :D.

protector330
03-23-2002, 05:05 AM
I think there are more wrong things :( when using the 'dig' command I get really strange stuff, compared to other nameservers.

I think I do already have lots of error in my zone defaults for master zone...

could you please indicate an url "how to configure your own nameservers by using bind 8 and webmin for dummies"? :D

Yes I did search with Google ;)

Thanks!

ToastyX
03-23-2002, 05:07 AM
Originally posted by uuallan


Hey -- no fair, moderators have quicker reflexes :D.

Yeah, but he forgot the period after MYDOMAIN.COM ;)

allan
03-23-2002, 08:40 AM
Originally posted by protector330

could you please indicate an url "how to configure your own nameservers by using bind 8 and webmin for dummies"? :D


www.webmin.com

If you post your specifics, we may be able to tell you what is wrong.

protector330
03-23-2002, 10:41 AM
Thanks in the meantime for your kind help. Yeah i did already read through the webmin.com docu but it is not enough for dummies like me :D This is the situation (ns1. and ns2.MYDOMAIN.com do ping with the following configuration):


"ZONE DEFAULTS" of webmin contains:

Refresh time 10800
Expiry time 432000
Transfer retry time 3600
Default time-to-live 38400


Record name/Type/Value

MYDOMAIN.com / Address / first checkbox selected, emtpy fild
ns1.MYDOMAIN.com / Name Server / second checkbox selected, field = xxx.xxx.xxx.99
ns2.MYDOMAIN.com / Name Server / second checkbox selected, field = xxx.xxx.xxx.102
mail.MYDOMAIN.com / Mail Server / second checkbox selected, field = MYDOMAIN.com


Additional template file: none
Default email address: dns@MYDOMAIN.com



The already existing Master Zones are:
- Root Zone
- 127.0.0
- localhost


Now I want to have MYDOMAIN.com and www.MYDOMAIN.com pointing to xxx.xxx.xxx.98. Do I need to create a NEW Master Zone for this (and for all the future domains I will have to insert into my brand new nameservers)? I think so.


When creating a NEW Master Zone I specify things as follows:


- Zone Type: Forward (Names to Address)es
- Domain/Network: MYDOMAIN.com
- Records File: Automatic
- Master Server: ns1.MYDOMAIN.com
- Use Zone Templates Yes
- IP Address for template records: xxx.xx.xxx.99
- The for different times which should be ok as used by default


When clicking onto CREATE it imports all the data from the default zone, but nothing works. I'm quite sure I keep on making an error when creating the NEW Master Zone. Could you pls tell me what exactly I have to put in the fields (appearing in webmin when creating a NEW Master Zone)? I've tried all the different variations, but I'm sure I go on making the same error (f.eg. putting in the wrong values for 'Domain/Network' and 'Master Server'). :bawling:

protector330
03-24-2002, 04:34 AM
Any help with the above records?

protector330
03-24-2002, 06:34 AM
is it normal that my /etc/resolv.conf contains this?

[root@annamaria etc]# vi resolv.conf

nameserver xxx.xx.xxx.17
nameserver xxx.xx.xx.18



Both are NS of my ISP and not mine!!! is this why nothing is working?? thanks a lot

Further, when I make a 'dig mydomain.com' I get:


; <<>> DiG 9.1.3 <<>> mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18347
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN A

;; Query time: 6 msec
;; SERVER: xxx.xx.xx.17#53(xxx.xx.xxx.17)
;; WHEN: Sun Mar 24 14:42:39 2002
;; MSG SIZE rcvd: 31


is it normal that the IP address of the NS of my ISP answers to my request? Why do I get SERVFAIL as status?

Please help me

DigitalXWeb
03-24-2002, 09:55 AM
Originally posted by protector330
is it normal that my /etc/resolv.conf contains this?

[root@annamaria etc]# vi resolv.conf

nameserver xxx.xx.xxx.17
nameserver xxx.xx.xx.18



Both are NS of my ISP and not mine!!! is this why nothing is working?? thanks a lot

Further, when I make a 'dig mydomain.com' I get:



is it normal that the IP address of the NS of my ISP answers to my request? Why do I get SERVFAIL as status?

Please help me

The entries in resolv.conf should reflect your nameservers if you are running your own DNS. If you are using your ISP for DNS then leave them as they are.

protector330
03-24-2002, 10:01 AM
due to the fact i want to use my nameservers I've changed to entries of resolve.conf to reflect the 2 ip address of MY nameservers.

after restarting named, I do still get the similar error message when digging mydomain.com. The only difference is that the IP address of my NS is shown now... but nothing is working and domains are not resolving....

I'm getting crazy... what am I making wrong
:bawling: :bawling:

protector330
03-24-2002, 01:15 PM
here again is my configuration: I'D be so happy if you could help me. In var/named I have the file MYDOMAIN.com.hosts. My resolv.conf contains the 2 Ip address of my own nameservers. Here is my named.conf....


named.conf


// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forwarders { xxx.xxx.xxx.17; xxx.xxx.xxx.18; };
forward only;

};

//
// a caching only nameserver config
//
// controls {
// inet 127.0.0.1 allow { localhost; } keys { rndckey; };
// };

zone "." IN {
type hint;
file "named.ca";
};

zone "MYDOMAIN.com" {
type master;
file "MYDOMAIN.com.hosts";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};


include "/etc/rndc.key";


when starting the named service i get FAILED
tail -f /var/log/messages shows me the following stuff:


[root@MYSERVERNAME etc]# tail -f /var/log/messages
Mar 24 17:54:50 MYSERVERNAME named[9342]: exiting (due to fatal error)
Mar 24 17:54:50 MYSERVERNAME named: named startup failed
Mar 24 18:00:06 MYSERVERNAME named: named shutdown failed
Mar 24 18:00:06 MYSERVERNAME named[9563]: starting BIND 9.1.3 -u named
Mar 24 18:00:06 MYSERVERNAME named[9563]: using 1 CPU
Mar 24 18:00:06 MYSERVERNAME named[9566]: loading configuration from '/etc/named.conf'
Mar 24 18:00:06 MYSERVERNAME named[9566]: zone configuration for 'MYDOMAIN.com' failed: already exists
Mar 24 18:00:06 MYSERVERNAME named[9566]: loading configuration: failure
Mar 24 18:00:06 MYSERVERNAME named[9566]: exiting (due to fatal error)
Mar 24 18:00:06 MYSERVERNAME named: named startup failed

micxz
09-15-2004, 12:58 AM
Did you ever solve this?

Did you delete the duplicate mydomain.com files and did this fix it?

I getting the same errors

Thanks

micxz
09-17-2004, 08:38 PM
yep that was it'