PDA

View Full Version : simple DNS config driving me nuts


v8s10blazer
19th September 2004, 10:46 AM
Hello,

Well everyone, im having one hell of a time trying to get DNS to work on this fedora server. All im tryin to do is get my webserver, www.metroinformationsystems.com to be resolved in DNS... www is also the name server for the network. The ip address is 192.168.2.25, and from my terminal i can ping www.metroinformationsystems.com but its pinging 127.0.0.1 so i dont think its using DNS to resolve itself. Ive tried everything, ive bought two books, talked to several people, and done numerous howtos, went from fedora 2 back to fedora 1 with all the updates.. IT still will not work!!!! I cant believe how hard this is, i did it in class about 4 months ago and it WORKed fine! I am running Bind 9.2.2

I also get this error when i tried to reload named.
/etc/init.d/named reload
reloading named: 4005: no process killed [failed]
I checked to see named was running, it was, pid 4005... So im lost to why it wont reload...

Anyways here are my configs /etc/named.conf /var/named/metro.zone and /var/named/2.168.192.zone ...
named.conf :
// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "metroinformationsystems.com" IN {
type master;
file "metro.zone";
allow-update { none; };
};
zone "2.168.192.in-addr.arpa" IN {
type master;
file "2.168.192.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";

here is metro.zone, the forward lookup file

$TTL 86400
$ORIGIN metroinformationsystems.com.
@ IN SOA www.metroinformationsystems.com. root.localhost (
1997022716 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400
) ; Minimum
IN NS 192.168.2.25
www IN A 192.168.2.25

Here is the reverse file 2.168.192.zone

$TTL 86400
$ORIGIN metroinformationsystems.com.
@ IN SOA www (
root
1997022715 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS www.metroinformationsystems.com.
25 IN PTR www.metroinformationsystems.com.

Thank you SO much for reading this, Andy

blammo
19th September 2004, 03:47 PM
FC2 has this chroot thing going for named. The named.conf file should reside under /var/named/chroot/etc and the zone files under /var/named/chroot/var/named. I think this might be your problem. Also copy the rndc.key from /etc to /var/named/chroot/etc.

john3883
19th September 2004, 09:31 PM

I had a problem setting up DNS as well I think it was because i needed two IP addresses. I found a site that lets you do all that DNS stuff for free. A, CNAME, MX, ect. http://www.sitelutions.com/

v8s10blazer
20th September 2004, 03:34 AM
Hey guys,

Well i moved the zone files around. Seems i moved them into the correct position, because before webmin would read the named.conf file, but when i went to view the zone files for the zones, it would come up blank.
However i still have one problem, i still cant reload named. It gives me that silly error reloading named: (pid): no process killed [failed]
I checked to see named was running, ... I have no clue why its refusing to reload... If i could fix that, im sure it would start resolving.

-thanks for your help guys, andy

blammo
20th September 2004, 04:06 AM
Try this: /etc/rc.d/init.d/named restart

If this works then check the logs to see if it loaded the zone files. If it gives you an error, then try to kill the PID manually and start it again. If that still won't work then reboot the machine.

v8s10blazer
20th September 2004, 06:35 AM
OMG the son of a ***** worked.... I cant believe it...
I went ahead and pasted the three name files everywhere in the /var/named directory... Then i issued /etc/init.d/named RESTART and then i was able to ping www.metroinformationsystems.com from my windows pc...

Well blammo, i couldnt have done it without you... Thank you so much for helping me, i feel like a huge weight has got off my shoulders... This damn DNS has really been driving me ****ing nuts lol... NOW!! Off to samba!!!

-thank you so much, andy

blammo
20th September 2004, 02:27 PM
You're welcome

coredump
14th October 2004, 06:01 PM
how would one serve like this (local dns) and also have external dns? ive heard about containers or something, but my local net i have to use the hosts file to point it right. would like to be able to just adjust dns settings and any new domain i add would automatically load in the local net as well as the outside world. lol.

if i can resolve my current dns issue. still searching for that answer and will work on local dns later.