LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   BIND: server can't resolve names on itself (https://www.linuxquestions.org/questions/linux-networking-3/bind-server-cant-resolve-names-on-itself-410930/)

psychobyte 02-02-2006 12:27 PM

BIND: server can't resolve names on itself
 
Hi,


I'm using BIND on FC4. My machine is a primary DNS server for a forward domain and 3 reverse domains.

For some reason the forward name lookups don't resolve but, the reverse do. If I do

$> nslookup somehost

I get...

** server can't find junkbond: NXDOMAIN

my /etc/resolv.conf file points to the local server and search is set to my domain.

This is part of my named.conf file(modified for public eyes, of course)...

---------------------------
zone "icd.uc.ed" {
type master;
file "icd.uc.ed.zone";
check-names ignore;
allow-query {any;};
allow-transfer {12.11.14.12; };
allow-update {128.111.15.15; };
notify yes;
};
---------------------------

Also, I have a secondary server that has pretty much the same config for the domain and it
resolves the forward name queries fine....

I've also tried removing the firewall with no luck so it's not that either.

Any ideas?

Thanks,

bathory 02-02-2006 12:35 PM

Replace the "search" keyword with the "domain" keyword to see if it works. Else check the zone file for errors.

psychobyte 02-02-2006 01:29 PM

That didn't work.

That brings me to another question.

How do you set logging to log queries? At the moment it only logs zone transfers.

Thanks,

bathory 02-03-2006 02:04 AM

Did you check the zone file for errors? Or you can post it here so we can take a look. As for logging use the logging statement.

psychobyte 02-03-2006 01:04 PM

I did both named-checkzone and named-checkconf and both come up w/ out errors.



This is the beginning of my zone file(slightly modified for the public)



$ORIGIN .
$TTL 3600 ; 1 hour
iqd.usb.eu IN SOA blackmonday.iqd.usb.eu. root.iqd.usb.eu. (
608 ; serial
1800 ; refresh (30 minutes)
600 ; retry (10 minutes)
172800 ; expire (2 days)
900 ; minimum (15 minutes)
)

------------------------------------

bathory 02-03-2006 03:50 PM

It's not the beginning that we need, but the rest where you assign the IP addresses to hosts, i.e. the IN A and in CNAME records. Meanwhile what happens if you try to resolve a FQDN:
Code:

nslookup somehost.iqd.usb.eu

psychobyte 02-03-2006 05:24 PM

Ummm.

not sure what I did but, it seems to be working now.

Thanks!


All times are GMT -5. The time now is 09:14 PM.