Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
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.
  1. #11
    Just Joined!
    Join Date
    Sep 2012
    Posts
    15

    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 have a rights/folder places errors.
    I tried a named-checkzone and I have :

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

    Thank you

  2. #12
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    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.

  3. #13
    Just 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

  4. #14
    Just 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?

  5. #15
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    I find it's usually sufficient to compile DHCP with:
    Code:
    ./configure --prefix=/usr --sysconfdir=/etc
    and then
    Code:
    make install
    as root. This should put dhcpd.conf in /etc and dhcpd in /usr/sbin.

  6. #16
    Just 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.

  7. #17
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    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.

  8. #18
    Just 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):

    Code:
    key "dhcpupdate" {
            algorithm hmac-md5;
            secret "YFvQAeHjqu60dnqOf8BqwA==";
    };
    I configred my interface eth0 with static 192.168.1.1

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

    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.

  9. #19
    Just Joined!
    Join Date
    Sep 2012
    Posts
    15
    resolv.conf
    Code:
    search utopia.net
    nameserver 127.0.0.1
    hosts
    Code:
    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
    host.conf
    Code:
    multi on
    checkzone and checkconf ok, no error in syslog when i restart or reload bind9, no error when I restart dhcpd.
    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.

  10. #20
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    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.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •