Setting up a nameserver - Any good tutorials about?

Associate
Joined
18 Nov 2008
Posts
2,430
Location
Liverpool
I'm trying to setup my new dedicated server as a nameserver, but haven't got a clue how to do it! I've looked at many tutorials but most are outdated.

I'm trying to get my site (For the sake of this topic lets call it example.com) to work with ns1.example.com and ns2.example.com. I've setup the glue records and set the nameservers of the domain, but don't know what to do next?

I have webmin and BIND to hand if that helps, and am running CentOS.

Much Appreciated!
 
Hi Cycrow, cheers for the advice, much appreciated!

I actually have access to 5 IP addresses with my dedi, so I assume I can use two for 2 different nameservers? If so, that's what I'm doing at the moment.

I've set up the A records to point to the IP, setup the NS records to point to the name servers, but I'm not sure what you meant about C records?

Also, with regards to changing the nameserver records of my domain, I assume that's done in the form of glue records? If so, I've done them also.

And yet...still no correct redirect! I have a feeling my config file is not right, because it seems to have very little in it, it appears as follows:

Code:
options {
	directory "/etc";
	pid-file "/var/run/named/named.pid";
	};

zone "." {
	type hint;
	file "/etc/db.cache";
	};

zone "example.co.uk" {
	type master;
	file "/var/named/example.co.uk.hosts";
	};

Your time is much appreciated! Thanks for your input so far.

EDIT: Just pinged my nameservers and they get a response, but the main domain doesn't, does this mean I've setup the records for the nameservers correctly (They get the right IP!) but not the domains records?
 
Last edited:
Both of those files seem to be a massive file of @'s and other computer read symbols. I assume that's not supposed to be read by humans as there's little legible text in there?

And yeah I know having two nameservers on one server is pointless, the only reason I'm doing it is because you have to have two for most things. I'm not bothered about redundancy at this point.
 
Wow thanks mate that's a lot of useful info for me, much appreciated!

My version of BIND doesn't seem to have C records, but I do have an A record set up for the domain with and without www. on it, so I assume this is fine?

I suppose it's easier if I tell you that the domain is cyphergaming.co.uk, which I own. A WHOIS does indeed point to the correct IP address of my server.

The file cyphergaming.co.uk.hosts contains the following

Code:
$ttl 38400
cyphergaming.co.uk.     IN      SOA     ns1.cyphergaming.co.uk. <REMOVED>. (
                        2010081807
                        10800
                        3600
                        604800
                        38400 )
cyphergaming.co.uk.     IN      NS      ns1.cyphergaming.co.uk.
cyphergaming.co.uk.     IN      NS      ns2.cyphergaming.co.uk.
ns1.cyphergaming.co.uk. IN      A       213.5.180.95
ns2.cyphergaming.co.uk. IN      A       213.5.180.96
cyphergaming.co.uk.     IN      A       213.5.180.95
www.cyphergaming.co.uk. IN      A       213.5.180.95

This is why I'm confused, as far as I can tell everything is pointing around how it should do. Even the WHOIS points to the correct IP, and yet it doesn't work!
 
Last edited:
Yeah I've set it to YYYYMMDD via Webmin earlier on this evening.

The problem I'm having is that it doesn't...work? Accessing cyphergaming.co.uk doesn't redirect to anything when presumably it should redirect to the default apache page?

Thanks for the extra info on CNAME's, I'll change them once it's working. But till I get it working I'll leave it as it is or I won't be able to manage that record via Webmin!
 
Thanks Cycrow, my cache must have reset int he last few minutes, upon my last post it didn't work, but when you said it worked I checked and sure enough, it's fine!

Thank you so much for your help, I'm extremely grateful! If adding to your trust for help on the forum was allowed then I would!

Much appreciated!

EDIT: Just found out that it was BIND that refreshed :) That's what caused it to start working!
 
Back
Top Bottom