How to configure BIND?

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Hi Guys,

This is my first time working with BIND and DNS in general.

What I would like to do is create a domain that gets resolved from my dns server.

I have 2nd domain called csvpms.co.za and csvpms.co.za, ns1.csvpms.co.za & ns2.csvpms.co.za all resolve to my pubic ip where BIND is installed.

The domain I want to create is cerebuswatcher.co.za.

So I edited named.conf

zone "cerebuswatcher.co.za" {
type master;
file "/etc/zones/cerebuswatcher.co.za.zone.db";
};


and then my /etc/zones/cerebuswatcher.co.za.zone.db file looks like this

$TTL 86400
$ORIGIN cerebuswatcher.co.za.

@ IN SOA ns1.csvpms.co.za. test.test.com. (
2012041001 ; serial number YYMMDDNN
28800 ; Refresh
7200 ; Retry
864000 ; Expire
86400 ; Min TTL
)

NS ns1.csvpms.co.za.
NS ns2.csvpms.co.za.

MX 10 mail.cerebuswatcher.co.za.
MX 20 mail2.cerebuswatcher.co.za.



www IN A 196.213.176.115
@ IN A 196.213.176.115
ns1 A 196.213.176.115
ns2 A 196.213.176.115

However everytime I try and register the damn thing with coza I get an error

COZA: FAIL: No Nameservers found for "cerebuswatcher.co.za"

Provided Nameserver information
Primary Server : ns1.csvpms.co.za
Secondary 1 : ns2.csvpms.co.za

Domain "cerebuswatcher.co.za", SOA Ref (), Orig ""
Pre-existing Nameservers for "cerebuswatcher.co.za":-

Syntax/Cross-Checking provided info for Nameserver at 6a: ns1.csvpms.co.za

Syntax/Cross-Checking provided info for Nameserver at 6e: ns2.csvpms.co.za

Adding application
Checking quoted Nameservers....

NS1-1 FQDN: ns1.csvpms.co.za.
NS1-1 IPV4: 196.213.176.115
NS1-1 ORIGIN: ns1.csvpms.co.za.
NS1-1 E-MAIL: test@test.com.
NS1-1 SER-NO: 2012041001
NS1-1 NS RECORD1: ns1.csvpms.co.za.
NS1-1 NS RECORD2: ns2.csvpms.co.za.


ERROR: No valid nameservers found - rejecting request.

Does anyone know what on earth I'm doing wrong?

If I manually point my DNS to BINDS public IP I can resolve cerebuswatcher.co.za to its IP adderss but coza won't let me register it?
 

Murlin

Active Member
Joined
Dec 11, 2008
Messages
69
I compared your settings to our setup here and cant spot anything wrong. I also did some testing from the outside and all looks good. It could be that UniForum is having an issue. Sorry I couldn't be more of help
 

leakybucket

Active Member
Joined
Aug 25, 2008
Messages
37
Does anyone know what on earth I'm doing wrong?

I'm not certain that it's the problem, but I note that currently the three Hetzner name servers listed as authoritative for csvpms.co.za are giving out what looks like IP addresses for NS RRs in your csvpms.co.za domain. That's incorrect, it should be hostnames.

I also suspect COZA might have a problem with both nameservers being the same IP, but I can't say for sure.

Do you have access to a second box, or second IP, that you can use as a second nameserver?
 

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Thanks for the help guys, as I said I'm very new to this.

@leakybucket
I do have another server with a public IP, I'll try that today thanks.
You say that csvpms.co.za should give out hostnames for NS RR's, I've just updated it now so I'll test again soon. THanks
 

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
dude thanks alot. I setup 2 different bind servers on 2 different IP's and made csvpms.co.za give hostnames for NS RR's and it works, registration through. Thanks again
 
Top