Results 11 to 20 of 25
In my named.conf I wrote that :
Code:
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; 192.168.1.1; } keys { "rndc-key"; };
But that change nothing. I'm sure I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-11-2012 #11Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
In my named.conf I wrote that :
But that change nothing. I'm sure I have a rights/folder places errors.Code:controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; 192.168.1.1; } keys { "rndc-key"; };
I tried a named-checkzone and I have :
Could you give me the right way where to place the conf files, the zones, and what command use to put the appropriate rights to the folders?Code:root@linux:/etc/bind# named-checkzone db.utopia.net /var/cache/bind/zone/db.utopia.net /var/cache/bind/zone/db.utopia.net:3: ignoring out-of-zone data (utopia.net) /var/cache/bind/zone/db.utopia.net:12: ignoring out-of-zone data (linux.utopia.net) /var/cache/bind/zone/db.utopia.net:13: ignoring out-of-zone data (dc.utopia.net) zone db.utopia.net/IN: has 0 SOA records zone db.utopia.net/IN: has no NS records zone db.utopia.net/IN: not loaded due to errors.
Thank you
- 09-11-2012 #12
You're using named-checkzone incorrectly. You should be using 'named-checkzone utopia.net /var/cache/bind/zone/db.utopia.net' and you'll probably fine it returns without a problem. I'm afraid that I'm running out of ideas to try, and my only suggestion is to try a version of DHCPD that I know works for me: 4.2.3-P2 ftp://ftp.isc.org/isc/dhcp/4.2.3-P2/....2.3-P2.tar.gz
I do recall having problems with the latest version of DHCPD.
- 09-11-2012 #13Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
The checkzone works fine too, I'll try to uninstall previous dhcpd version and install yours.
I'll let you know, thank you
- 09-11-2012 #14Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
I triyed to install it (1st time I install soft on linux
). I found dhcpd.conf in /usr/local/etc/ but I don't know where to launch the dhcp server ?
The 1st version was installed by synaptic, (4.1.1).
Can you help me?
- 09-11-2012 #15
I find it's usually sufficient to compile DHCP with:
and thenCode:./configure --prefix=/usr --sysconfdir=/etc
as root. This should put dhcpd.conf in /etc and dhcpd in /usr/sbin.Code:make install
- 09-12-2012 #16Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
I allready installed it without argument in ./configure.
How do you do to start the daemon?
And I saw that this version include a bind ddns???
-EDIT-
I cleared my VM so I installed your DHCP version with the argument you specified.
I'll try to use the bind used with the DHCP.Last edited by morpheus78; 09-12-2012 at 02:00 PM.
- 09-12-2012 #17
Don't worry about the BIND stuff that it mentions; that's just for DDNS with DHCPD. It doesn't install a new version of BIND. You can start DHCPD by running /usr/sbin/dhcpd as root from the command line. You can worry about the startup script once you know it's all working.
- 09-12-2012 #18Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
I reinstalled all the VM using aptitude, install by myself is hard to configure.
I configured my zones in /etc/bind/zone
I configured named.conf like yours.
I configured dhcpd.conf like yours.
I made a new key and I put the folowing code in named and dhcpd (and in rndc.key):
I configred my interface eth0 with static 192.168.1.1Code:key "dhcpupdate" { algorithm hmac-md5; secret "YFvQAeHjqu60dnqOf8BqwA=="; };
----------------------
Now, I need to configure my hosts file no ? (can I see yours?)
And resolv.conf? (can I see yours?)
I don't forget files ?Last edited by morpheus78; 09-12-2012 at 08:25 PM.
- 09-12-2012 #19Just Joined!
- Join Date
- Sep 2012
- Posts
- 15
resolv.conf
hostsCode:search utopia.net nameserver 127.0.0.1
host.confCode:127.0.0.1 localhost 127.0.1.1 linux.utopia.net linux 192.168.1.1 linux.utopia.net linux # The following lines are desirable for IPv6 capable hosts #::1 ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ip6-mcastprefix #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters
checkzone and checkconf ok, no error in syslog when i restart or reload bind9, no error when I restart dhcpd.Code:multi on
With nslookup I cen see linux and 192.168.1.1 in the both (linux and machine-user), but I always got NXDOMAIN for machine-user... and dhcp don't update the zones
My syslog when I restart bind9 :
Code:Sep 12 23:32:14 linux named[3450]: adjusted limit on open files from 1024 to 1048576 Sep 12 23:32:14 linux named[3450]: found 4 CPUs, using 4 worker threads Sep 12 23:32:14 linux named[3450]: using up to 4096 sockets Sep 12 23:32:14 linux named[3450]: loading configuration from '/etc/bind/named.conf' Sep 12 23:32:14 linux named[3450]: reading built-in trusted keys from file '/etc/bind/bind.keys' Sep 12 23:32:14 linux named[3450]: using default UDP/IPv4 port range: [1024, 65535] Sep 12 23:32:14 linux named[3450]: using default UDP/IPv6 port range: [1024, 65535] Sep 12 23:32:14 linux named[3450]: no IPv6 interfaces found Sep 12 23:32:14 linux named[3450]: listening on IPv4 interface lo, 127.0.0.1#53 Sep 12 23:32:14 linux named[3450]: listening on IPv4 interface eth0, 192.168.1.1#53 Sep 12 23:32:14 linux named[3450]: listening on IPv4 interface eth1, 192.168.100.243#53 Sep 12 23:32:14 linux named[3450]: generating session key for dynamic DNS Sep 12 23:32:14 linux named[3450]: set up managed keys zone for view _default, file 'managed-keys.bind' Sep 12 23:32:14 linux named[3450]: automatic empty zone: 0.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 127.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 254.169.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 2.0.192.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 100.51.198.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 113.0.203.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 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.0.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty 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 Sep 12 23:32:14 linux named[3450]: automatic empty zone: D.F.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 8.E.F.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 9.E.F.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: A.E.F.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: B.E.F.IP6.ARPA Sep 12 23:32:14 linux named[3450]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA Sep 12 23:32:14 linux named[3450]: command channel listening on 127.0.0.1#953 Sep 12 23:32:14 linux named[3450]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2 Sep 12 23:32:14 linux named[3450]: zone utopia.net/IN: loaded serial 2 Sep 12 23:32:14 linux named[3450]: managed-keys-zone ./IN: loaded serial 0 Sep 12 23:32:14 linux named[3450]: running
Last edited by morpheus78; 09-12-2012 at 09:29 PM.
- 09-13-2012 #20
If DHCPD is trying to update the zones and can't, then it should at least throw out an error about it. Try going over your system logs to see if DHCPD has logged anything; we need to see what DHCPD is doing when it hands out an IP address.
Also, Can you repost named.conf and dhcpd.conf again since you've modified them?
Additionally I noticed that you're using 'auth-nxdomain no;' in named.conf. Be sure to delete that option as you don't require it. I would also recommend moving your zones out of the subnet and get rid of the duplicate utopia.net zone in dhcpd.conf.


Reply With Quote
