Hi everyone. I have a domain name that I want to point to a computer I’m trying to set up at home. I’m hoping to have a name server, webserver and a mailserver all on the same machine. I have installed Bind via Yast, opened the appropriate ports in the firewall and done what it told me to do in the README file, but it still isn’t behaving as expected. It works fine as a caching local server,but fails to identify its self as the either the authoritative nameserver or even point the domain name to its self to identify its self as the host of the doman that’s being looked up.
The host machine is on a public static IP with no NAT for any hosts in my home network. I’ve been testing the nameserver responses from another machine in the network that has the nameserver I’m testing as the only nameserver in its IPV4 DNS settings. Like I said, the nameserver hands out responses for domains like google.com and opensuse.org perfectly fine. Its just my own domain name that it fails on.
O would have thought the setup would have been simple with it being a static public IP with no NAT and everything being on the one host, but I’m obviously doing something wrong. Can anyone help me out
Here’s the contents of the files that the README file says to edit and put in place (although I’ re-obviously edited out the actual details.). Oh and the hostname of the machine the server is on is “www”.
/etc/named.d/mydomain.com.conf
#
# Configuration file for the mydomain.com zone.
#
zone "mydomain.com" in {
type master;
file "master/mydomain.com.zone";
};
/var/lib/named/master/mydomain.com.zone
$TTL 2D
mydomain.com. IN SOA www.mydomain.com. hostmaster.mydomain.com. (
1999092915 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS www
IN MX 10 www
www IN A 61.71.81.162
www IN CNAME www
ftp IN CNAME www
/etc/named.d/61.71.80.conf (Did I guess this filename correctly? That it needs to be a network address instead of a host address?
Configuration file for the reverse lookup of the 61.71.80.0**/21** network.
zone “80.71.61in-addr.arpa” in {
type master;
file “master/80.71.61.in-addr.arpa.zone”;
};
/var/lib/named/master/80.71.61.in-addr.arpa.zone
$TTL 2D
80.71.61.in-addr.arpa. IN SOA www.mydomain.com. hostmaster.mydomain.com. (
1999092915 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS www.mydomain.com.
162 IN PTR www.mydomain.com.com.
Should the line in /var/lib/named/master/80.71.61.in-addr.arpa.zone that says
80.71.61.in-addr.arpa. IN SOA www.mydomain.com. hostmaster.mydomain.com. (
not instead say
61.71.80.in-addr.arpa. IN SOA www.mydomain.com. hostmaster.mydomain.com. (
? I tried my best to avoid silly mistakes like getting addresses the wrong way around, but my eyesight and short-term memory are both very poor.(This post, for example, has taken me 2 hours and 20 minutes to write) Any help that anyone could give would be very much appreciated.
