I finally got this working!!
I must point out that I changed my hostname to vhost1, but my domain name is still bosslink.net. I was not 100% sure if there was a naming issue going on, as all the tutorial's I read used FQDN's.
There were a few problems, first I had to tell my Host to listen using the IP address of eth0 in /etc/named.conf;
Code:
options {
listen-on port 53 { 127.0.0.1; 192.168.0.10; };
Then I restarted named, but dig would not yield any results unless I specified local host;
Code:
dig @localhost +short NS bosslink.net
This is where I lost the plot;
When I checked my /var/log/messages there was a zone being loaded with a serial number of 0. This was not my zone!!! Oh no, it wasn't my zone people! Who's ruddy zone was this? On my lan? I had changed the serial number of bosslink.net.zone to #3. So where the hell was this zone coming from?
Anyway, after a long long time. I found it was in fact
named.local that was being loaded. Yes, I know. I was shocked as well.
So, where was I? Oh yes, I had a good look through
/etc/named.conf
and I found a couple of things;
Code:
zone "bosslink.net" IN {
type hint;
file "bosslink.net.zone";
From reading about a thousand DNS How to's and tutorials, I was sure that
type should have been
master and not
hint
So, I changed it and restarted
named;
Code:
Error in named configuration:
/etc/named.rfc1912.zones:13: zone 'bosslink.net': already exists previous definition: /etc/named.conf:31
[FAILED]
Hmmm, I thought. I have nothing else to try, I don't really know if what I have already tried is actually correct. For all I know, I've edited the wrong lines in the wrong files and made a complete mess of this. All the well written tutorials I read had used different config's, all the tutorials the were relevant made absolutely no sense at all.
Though, not one to give up, I thought I'd
comment the below line out of /etc/named.conf and restart named
Code:
include "/etc/named.rfc1912.zones";
It worked, I have no idea why this line was stopping my bosslink.net.zone from being loaded.
But it now works, I can now access
www.bosslink.net from my Client.
Thanks for your help
much love