Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having trouble with setting up reverse DNS. I have added the following lines to /etc/named.conf
zone "196.144.18.64.in-addr.arpa" {
type master;
file "pz/db.196.144.18.64.in-addr.arpa";
};
and in the file I created /var/named/db.196.144.18.64.in-addr.arpa :
$ORIGIN 196.144.18.64.in-addr.arpa.
@ IN SOA d0pe.net. root.d0pe.net. (
2007010001 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
NS YOUR.NAME.SERVER1.
NS YOUR.NAME.SERVER2.
196 IN PTR d0pe.net.
Now when I try and start named, I get the following error:
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone 196.144.18.64.in-addr.arpa/IN: loading master file db.196.144.18.64.in-addr.arpa: file not found
_default/196.144.18.64.in-addr.arpa/IN: file not found
[FAILED]
Any help would be greatly appreciated. The server is running Fedora Core 4. I am very new to linux and am using this VPS to learn about it.
zone 196.144.18.64.in-addr.arpa/IN: loading master file db.196.144.18.64.in-addr.arpa: file not found
As you see from the above, bind cannot find the zone file.
Note that the localion of this file is: /some/directory/pz/db.196.144.18.64.in-addr.arpa, where "/some/directory" is the path defined by the
Code:
"directory "/some/directory";
line in your named.conf.
Check that the whole path to that file is correct and that is readable by the user running named:
Code:
ls -l /path/to/zonefiles/pz/db.196.144.18.64.in-addr.arpa
zone "196.144.18.64.in-addr.arpa" {
type master;
file "db.196.144.18.64.in-addr.arpa";
};
(removed the dir /pz to see if it would make a difference)
also in named.conf the directory setting is:
Quote:
directory "/var/named";
and to show that the file is actually there:
Quote:
[root@smoke named]# ls -l /var/named/db.196.144.18.64.in-addr.arpa
-rw-r--r-- 1 root root 283 Feb 8 10:58 /var/named/db.196.144.18.64.in-addr.arpa
but I still get this error when starting named:
Quote:
zone 196.144.18.64.in-addr.arpa/IN: loading master file db.196.144.18.64.in-addr.arpa: file not found
_default/196.144.18.64.in-addr.arpa/IN: file not found
[FAILED]
by the way, I am running named under root. Is this a bad idea?
thanks for your help, it is very appreciated!
Since your other zone files are loading correctly you must make sure that the file db.196.144.18.64.in-addr.arpa is in the same directory and has the same permissions.
You can also check your config for errors, running:
by the way, I am running named under root. Is this a bad idea?
If you mean that you are running named as user root, then it is a bad idea. You should create a user named to run named, or use the nobody user. You can also run named chrooted as described in this howto.
By the way, there is one major problem with what you are trying to do, and that is you are not who gets asked for the PTR for those IP addresses. Look ->
The particularly important part of that output is this -
Code:
;; AUTHORITY SECTION:
144.18.64.in-addr.arpa. 86400 IN SOA ns1.justedge.net. noc.justedge.net. 2002042467 28800 14400 3600000 86400
That tells us that ns1.justedge.net is the server to be asked for any PTR in the 64.18.144.0 -> 64.18.144.255 range. Your address falls in that range, so nobody is asking your machine for the PTR you are trying to create. You need to get justedge to create you a PTR, or try and get them to delegate that to you. Most ISPs will delegate down, but only if you have an entire class C, which would be every address from 64.18.144.0 -> 64.18.144.255.
It doesn't hurt to clear up your problem, but it is pointless. I'd just rip the in.address.arpa zones out of your named.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.