Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 have configured the dns server for local environment with domain name of my choice like ns.redhat.com, and ip address of 192.168.20.19 and subnet mask (255.255.255.0).When i run command like nslookup, host, dig to see the reponse of my dns. I get the right answer like show below
But when i ask reverse question to my dns it give follwoing error or response which is not desirable. I mean it should give corresponding ip address of the ns.redhat.com that is 192.168.20.19
I have configured the dns server for local environment with domain name of my choice like ns.redhat.com, and ip address of 192.168.20.19 and subnet mask (255.255.255.0).When i run command like nslookup, host, dig to see the reponse of my dns. I get the right answer like show below
But when i ask reverse question to my dns it give follwoing error or response which is not desirable. I mean it should give corresponding ip address of the ns.redhat.com that is 192.168.20.19
Actually dear this does not work which you tell me above for my dns server it shows follwoing error when i restart named service
/etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone redhat.com/IN: has no NS records
internal/redhat.com/IN: bad zone
zone 20.168.192.in-addr.arpa/IN: loaded serial 42
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
[FAILED]
Actually dear this does not work which you tell me above for my dns server it shows follwoing error when i restart named service
/etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone redhat.com/IN: has no NS records
internal/redhat.com/IN: bad zone
zone 20.168.192.in-addr.arpa/IN: loaded serial 42
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
[FAILED]
Your reverse file, I think you should change it like something like this:
$TTL 86400
@ IN SOA ns.redhat.com. root.redhat.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns.redhat.com.
19 IN PTR ns.redhat.com.
I have something like this configured on my server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.