LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "no servers could be reached" - on my dns setup (fedora) (https://www.linuxquestions.org/questions/linux-newbie-8/no-servers-could-be-reached-on-my-dns-setup-fedora-659016/)

redhatuser41104 07-29-2008 09:47 AM

"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.

salasi 07-29-2008 03:05 PM

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?

redhatuser41104 07-29-2008 10:39 PM

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.

I would appreciate any help... Thanks...

tajamari 07-30-2008 12:49 AM

make sure your pc client connected on the network is using the private DNS. in linux it is located on /etc/resolv.conf.

digitelone is from philipine right?

salasi 07-30-2008 10:12 AM

Quote:

Im am using BIND8, running on Fedora5.
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)...


All times are GMT -5. The time now is 11:21 PM.