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.
[root@annapurna ~]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone gsy.com/IN: loaded serial 42
dns_rdata_fromtext: reverse:9: near 'annapurna.gsy.com..': empty label
zone 0.168.192.in-addr.arpa/IN: loading master file reverse: empty label
localhost_resolver/0.168.192.in-addr.arpa/IN: empty label
[FAILED]
#[root@annapurna ~]# dig -x 101.0.168.192
; <<>> DiG 9.3.4-P1 <<>> -x 101.0.168.192
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@annapurna ~]#dig annapurnna
; <<>> DiG 9.3.4-P1 <<>> annapurnna
;; global options: printcmd
;; connection timed out; no servers could be reached
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1; 192.168.0.101; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "gsy.com" IN {
type master;
file "forward";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "reverse";
};
[root@annapurna ~]# cat /var/named/chroot/var/named/forward
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS annapurna.gsy.com.
annapurna.gsy.com. IN A 192.168.0.101
station1 IN A 192.168.0.102
**************************************************************************************************** ***************************
[root@annapurna ~]# cat /var/named/chroot/var/named/reverse
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS annapurna.gsy.com.
101 IN PTR annapurna.gsy.com..
102 IN PTR station1.gsy.com.
***************************************************************************
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.