Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 25 of 25
dhcpd.conf Code: ddns-domainname "utopia.net"; ddns-update-style interim; ddns-updates on; ignore client-updates; authoritative; key "dhcpupdate" { algorithm hmac-md5; secret "YFvQAeHjqu60dnqOf8BqwA=="; }; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.200; default-lease-time 86400; max-lease-time ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Just Joined!
    Join Date
    Sep 2012
    Posts
    15

    dhcpd.conf
    Code:
    ddns-domainname "utopia.net";
    ddns-update-style interim;
    ddns-updates on;
    ignore client-updates;
    authoritative;
    
    key "dhcpupdate" {
            algorithm hmac-md5;
            secret "YFvQAeHjqu60dnqOf8BqwA==";
    };
    
    
    subnet 192.168.1.0 netmask 255.255.255.0 {
            range 192.168.1.10 192.168.1.200;
            default-lease-time 86400;
            max-lease-time 86400;
            option routers 192.168.1.1;
            option ip-forwarding off;
            option broadcast-address 192.168.1.255;
            option subnet-mask 255.255.255.0;
            option domain-name-servers 192.168.1.1;
            option domain-name "utopia.net";
    }
    
    zone utopia.net {
            primary 127.0.0.1;
            key dhcpupdate;
    }
    
    zone 1.168.192.in-addr.arpa {
            primary 127.0.0.1;
            key dhcpupdate;
    }
    
    host dc {
            hardware ethernet 00:0C:29:18:FA:90;
            fixed-address 192.168.1.2;
    }
    named.conf
    Code:
    controls {
            inet 127.0.0.1 port 953
                         allow { 127.0.0.1; 192.168.1.1; } keys { "dhcpupdate"; };
    };
    
    key "dhcpupdate" {
            algorithm hmac-md5;
            secret "YFvQAeHjqu60dnqOf8BqwA==";
    };
    
    
    options {
            listen-on-v6 { none; };
            directory "/etc/bind/zone";
    };
    
    zone utopia.net {
            type master;
            file "db.utopia.net";
            allow-update { key dhcpupdate; };
            notify yes;
    };
    
    zone 1.168.192.in-addr.arpa {
            type master;
            file "db.utopia.net.rev";
            allow-update { key dhcpupdate; };
            notify yes;
    };
    How I can focus on dhcpd logs?
    I read about hosts have to send hostname to dhcp in order to update dns, is it right?

  2. #22
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    Quote Originally Posted by morpheus78 View Post
    How I can focus on dhcpd logs?
    I read about hosts have to send hostname to dhcp in order to update dns, is it right?
    Your configurations look good to me, and so I don't think there's an issue there. You should be able to view the DHCPD logs in /var/log/syslog along with all the other messages.

    Yes it's correct that DHCPD needs the hostname in order to add entries to DNS. If the machines aren't sending their hostname, then you should be able to configure them individually by adding
    Code:
    send host-name 'your-hostname-here';
    to /etc/dhclient.conf on the client machines.

  3. #23
    Just Joined!
    Join Date
    Sep 2012
    Posts
    15
    Code:
    Sep 14 09:05:27 linux dhcpd: DHCPDISCOVER from 00:0c:29:1a:58:73 via eth0
    Sep 14 09:05:28 linux dhcpd: DHCPOFFER on 192.168.1.11 to 00:0c:29:1a:58:73 (machine-user) via eth0
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#43007: signer "dhcpupdate" approved
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#43007: updating zone 'utopia.net/IN': adding an RR at 'machine-user.utopia.net' A
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#43007: updating zone 'utopia.net/IN': adding an RR at 'machine-user.utopia.net' TXT
    Sep 14 09:05:28 linux dhcpd: Added new forward map from machine-user.utopia.net to 192.168.1.11
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#47807: signer "dhcpupdate" approved
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#47807: updating zone '1.168.192.in-addr.arpa/IN': deleting rrset at '11.1.168.192.in-addr.arpa' PTR
    Sep 14 09:05:28 linux named[2932]: client 127.0.0.1#47807: updating zone '1.168.192.in-addr.arpa/IN': adding an RR at '11.1.168.192.in-addr.arpa' PTR
    Sep 14 09:05:28 linux dhcpd: added reverse map from 11.1.168.192.in-addr.arpa. to machine-user.utopia.net
    Sep 14 09:05:28 linux dhcpd: DHCPREQUEST for 192.168.1.11 (192.168.1.1) from 00:0c:29:1a:58:73 (machine-user) via eth0
    Sep 14 09:05:28 linux dhcpd: DHCPACK on 192.168.1.11 to 00:0c:29:1a:58:73 (machine-user) via eth0


    F*ck*** send-hostname option !!!

  4. $spacer_open
    $spacer_close
  5. #24
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    Location
    London, England
    Posts
    471
    We got there in the end. Usually you don't *need* to send the hostname to DHCPD -- and I certainly don't think I do on my machines -- but it doesn't hurt to have it on the machine just in case. There's not really a reliable way to automatically update the hostname sent via dhclient.conf if it's ever changed on the machine, but that's a fairly minor problem as it doesn't tend to be something that gets changed often.

  6. #25
    Just Joined!
    Join Date
    Sep 2012
    Posts
    15
    Thanks very much for help Krendoshazin, my nslookup works fine now.

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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