I have just re setup my Linux developement websorver using Fedora.
I used to use DNS with an imaginary domain and wildcards for testing.
Let's call it xyz so sites are site1.xyz site2.xyz with the actual
name being handled by Apache name-based virtual hosting.
I can't get the DNS working again.
The server is on 10.0.0.3 and is called lionel
I can access the default website from other computers in the network
woth 10.0.0.3 and with lionel but nit with lionel.xyz
For the time being I am happy just to get DNS working and will worry
about wild cards later.
rdnc start (or stop or ....) gives
rndc: connect failed: connection refused
named.conf is in /var/named/chroot/etc
and reads:
-----
zone "xyz" {
allow-query (any;);
type master;
notify no;
file "xyz.zone";
};
-----
rdnc.key is in the same directory and is empty.
There is also rdnc.key in /etc with
-----
key "rndckey" {
algorithm hmac-md5;
secret "L9EJnz0ahTCcZbMycUaKy4Ipxp0D6Doxqy0yEsVZKXDmK63r9FXEsFErvDf4";
};
-----
and rndc.conf in /etc with:
-----
options {
default-server localhost;
default-key "rndckey";
};
server localhost {
key "rndckey";
};
include "/etc/rndc.key";
-----
xyz.zone is in /var/named/chroot/var/named and reads:
-----
ns.xyz. IN SOA localhost root (
41 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
10.0.0.3 IN NS ns.xyz.
lionel.xyz IN A 10.0.0.3
-----