"no servers could be reached" - on my dns setup (fedora)
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.
"no servers could be reached" - on my dns setup (fedora)
Greetings to everybody. Its my first time to post. Im having problem configuring my dns. I used "dig" (i used another machine) to test my dns server, I just always get this message "no servers could be reached".
I would really appreciate any help. Im struggling on dns. Thanks.
Need more info (and then I'm not sure I can help):
Are you trying to run BIND as your DNS server (this is probably a mistake, but we'll go with it for the minute)?
Is bind (or whatever) running
Any error messages when you tried to run it in a shell? Anything in logs?
I'm guessing that you are only using it to resolve external (internaet) hostnames. Is this correct? If not, what are you trying to cache.
You might also want to say why you think this is a good idea (i.e., what are you trying to achieve). Is this on a Red Hat box? Two network interfaces and no DMZ?
Im am using BIND8, running on Fedora5. My bind is running good (based on my tests) on my dns server itself (server ip 192.168.1.100). "dig" and "nslookup" are giving the right answers - within the dns server itself. But when i use my other redhat box (connected locally with ip 192.168.1.2), i get "no servers could be reached".
Here are portions of my bind configuration. The info might help...
-------------------------
file: /etc/named.conf
-------------------------
options {
directory "/var/named";
query-source address * port 53;
forward first;
forwarders {
202.138.128.54; // the primary dns of my isp
202.138.128.50 // secondary dns of isp
};
allow-query { 192.168.1.7; localhost; };
allow-recursion { 192.168.1.7; localhost;};
};
controls {
inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
zone "localhost" IN{
type master;
file "localhost.zone";
allow-update {none;};
};
zone "bagabaglinux.com" {
type master;
notify no;
file "bagabaglinux.com";
};
Note: i excluded reverse dns for zone "0.0.127.in-addr.arpa" and the likes for brevity.
------------------------------------------------
file: /var/named/chroot/var/named/named.local
------------------------------------------------
$TTL 3D
@ IN SOA ns.bagabaglinux.com hostmaster.bagabaglinux.com. (
1 ; serial
....
NS ns.bagabaglinux.com.
1 PTR localhost.
-------------------------------------------------
file: /var/named/chroot/var/named/bagabaglinux.com
-------------------------------------------------
; zone file for bagabaglinux.com
$TTL 3D
@ IN SOA ns.bagabaglinux.com. hostmaster.bagabaglinux.com (
2008071614; serial
...
NS ns; Inet address of name server
MX 10 mail ; primary mail exchanger
localhost A 127.0.0.1
gw A 192.168.1.1
ns A 192.168.1.100
MX 10 mail
www CNAME ns
mail A 192.168.1.100
MX 10 mail
herb A 192.168.1.2
-----------------------------------------------------
These are my configurations. I used my other linux box "herb" with ip 192.168.1.2, and issued dig to check my dns server. There the message goes "no servers could be reached".
Im planin to use this name server to resolve local and external (internet) queries.
Bind 8??? Isn't that rather long in the tooth? Fedora is currently on 9.5.1 and the oldest I can find reference to on the distrowatch Fedora page is 9.2.2-P3. Remember that a substantial number of those minor version bumps will have been for things that could cause a security issue (maybe there weren't exploits for each of those at the time, but with something as old as Bind 8 that's hardly an issue)...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.