Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 26 of 26
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21

    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
    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
    Thanks very much for help Krendoshazin, my nslookup works fine now.

  7. #26

    dynamic dns

    hi

    i know this is an old post buy maybe you can help me a bit too.

    i have setup a ddns and isc-dhcp server. everything works fine and dhcp is updating the zones and it works but..

    the actual zone file not the .jnl if i do a bind restart it dumps the jnl to the zone file right. ok it does that but i have this record in the zone file

    test-PC A 192.168.0.11
    TXT "319688cfd872edd3c9e2225e3bdbeaffe3"

    any record like this one it does not get updated. what i mean is that i've changed the host name ov the machine in "test" from "test-pc" and if i try to ping test from my windows it works just fine. but from linux i get

    root@debian:/etc/bind# ping test
    ping: unknown host test
    ping: unknown host test-pc
    root@debian:/etc/bind# ping test-pc.home.lan
    PING test-pc.home.lan (192.168.0.11) 56(84) bytes of data.
    ^C
    --- test-pc.home.lan ping statistics ---
    1 packets transmitted, 0 received, 100% packet loss, time 0ms

    root@debian:/etc/bind# ping test.home.lan
    ping: unknown host test.home.lan
    root@debian:/etc/bind# nslookup test.home.lan
    Server: 192.168.0.253
    Address: 192.168.0.253#53

    ** server can't find test.home.lan: NXDOMAIN

    can you help with an idea of what i should do???

Posting Permissions

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