I have just started using Red Hat Fedora.
I have never used Linux before, but most of
what I have seen so far is encouraging.
I am trying to get up to speed and get
the most out of it, firstly for its server
capabilities.
It is running on a remote, dedicated machine
which I access using PuTTY.
It was setup with an "Everything" install.
The machine has two IP addresses,
67.22.3.101 and
67.22.3.102
I have an old domain name,
mydom123.com
The name-servers for this domain have been set,
by the registrar, to
ns1.mydom123.com (67.22.3.101 - primary)
ns2.mydom123.com (67.22.3.102 - secondary)
I have verified the above name-server settings
have been made correctly using whois for name-servers.
My goal is to host
www.mydom123.com on this server
on 67.22.3.101 and the primary name-server
ns1.mydom123.com (at the same
IP address - 67.22.3.101).
My understanding was that this is quite ok to
do, and it all seemed straight-foward.
Having read all the DNS how-to's and as many
articles and whatever else I found on the subject
I thought I would have a go. So, I set about
the task in hand with some new knowledge (supposedly),
and bags of energy, optimism and enthusiasm.
That was several days (and nights) ago....
I first edited /etc/named.conf to:
=== /etc/named.conf starts below ===
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; // also tried uncommented
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "mydom123.com" IN {
type master;
notify no;
file "zones/mydom123.com";
};
include "/etc/rndc.key";
=== /etc/named.conf ends above ===
I ran
named-checkconf.
No complaints.
Then I created /var/named/zones/mydom123.com:
=== /var/named/zones/mydom123.com starts below ===
$TTL 86400
@ IN SOA mydom123.com. hostmaster.mydom123.com. (
200401188 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
NS ns1.mydom123.com.
www.mydom123.com. IN A 67.22.3.101
ns1.mydom123.com. IN A 67.22.3.101
=== /var/named/zones/mydom123.com ends above ===
I ran
named-checkzone mydom123.com /var/named/zones/mydom123.com
and got back
"loaded serial 200401188"
and no complaints.
At this point, I was pleased that it was going so well.
I then entered
/etc/init.d/named restart
To test just *my* settings, I entered
nslookup
www.mydom123.com 67.22.3.101 -sil
When I got the following I realised that I haven't
cracked it just yet:
;; connection timed out; no servers could be reached
In /var/log/messages I can see
lame server resolving
'mydom123.com' (in 'mydom123.com'?): 67.22.3.101#53
For several days I have been reading whatever I can find
using google and in local bookshops, tweaking both the
files above then restarting named, and testing with
nslookup and dig.
I have not made no further progress.
I realise there are certain things that can be improved
(location of secondary DNS server, reverse lookups and
probably more), but I want to take one step at a time,
and hopefully understand the whats, whys and hows as
I go along.
If anyone has got as far the end of this long story,
and can suggest where I may have lost the plot, it would
be very helpful.
(The IP addresses and domain name are deliberately
ficticious in order to to protect the baffled).