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.
When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.
But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.
LAN snacerio:
DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.
Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet
clients can ping www.google.com but can't dig or ping client1.example.com.
Yes when I disable SELinux it works, when I enable SELinux it named service doesn't start.
Yes I have installed it via yum, but I faced that problem don't know why
I'm not using SELinux, but from this doc, looks like that if you want to keep SELinux enabled (you should as it's a good security measure), you can either use:
When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.
But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.
LAN snacerio:
DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.
Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet
clients can ping www.google.com but can't dig or ping client1.example.com.
When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.
But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.
I'm sure that I understand what you mean with the above. When can a client resolve a hostname and when it can't?
BTW, you have an error in /etc/resolv.conf. It should read:
When I have two separately connected PCs with each other under domain example.com
Where PC1 192.168.1.91 is dns server and PC2 192.168.1.93 is its client, they can dig, nslookup each other with name and IP both.
But when I Put PC1 (DNS server) on our LAN then no any client able to dig via this dns server.
LAN snacerio:
DSL router: 192.168.1.1 (itself is a DNS server for internet provided by PTCL internet provider)
192.168.1.2 to onwards we have clients.
Now both PC1 and PC2 are on this local net. I have defined in client /etc/resolv.conf
search example.conf
nameserver 192.168.1.91 # DNS for local net
nameserver 192.168.1.1 # dns for internet
clients can ping www.google.com but can't dig or ping client1.example.com.
Above issue also resolved when I stopped iptables service on DNS server. Thanks
* If you find error in named configuration file (master file not loaded, named.conf not found) make sure Did you create the named.conf in proper location. Actual location is "/var/named/chroot/etc/named.conf"
If you are not created in this location please move named.conf to this location, then try to start named service.
* If you find error in named configuration file (master file not loaded, named.conf not found) make sure Did you create the named.conf in proper location. Actual location is "/var/named/chroot/etc/named.conf"
If you are not created in this location please move named.conf to this location, then try to start named service.
This is when you have installed bind-chroot rpm
You need to make sure which bind rpm are you using for BIND configuration. Verify the logs properly as it would give more information about the error before taking any step.
please tell me what worng with my configuration dns centos ?? huhu
Error in named configuration:
zone belogix.com/IN: loaded serial 2011071001
dns_rdata_fromtext: /var/named/reverse.belogix.com:8: near eol: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: loading from master file /var/named/reverse.belogix.com failed: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/0.168.192.in-addr.arpa/IN: unexpected end of input
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.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 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
[FAILED]
Please start you own thread giving more details about your problem.
Especially post the /var/named/reverse.belogix.com zonefile, as it's the one that has errors:
Quote:
dns_rdata_fromtext: /var/named/reverse.belogix.com:8: near eol: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: loading from master file /var/named/reverse.belogix.com failed: unexpected end of input
zone 0.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/0.168.192.in-addr.arpa/IN: unexpected end of input
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.