LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-13-2009, 11:00 AM   #1
ACiD GRiM
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Rep: Reputation: 0
About to commit sudo rm -rf / over DDNS. Please help!


I've been trying to get DDNS to work between named and dhcpd for hours and NOTHING!!!

here is my dhcpd.conf

Code:
ddns-update-style interim;
ddns-updates on;
ddns-domainname "bencloud.net.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
one-lease-per-client true;
allow bootp;
authoritative;
include "/etc/rndc.key";
option T150 code 150 = string;

zone bencloud.net. {
    primary 127.0.0.1;
    key rndckey;
}

zone 0.0.10.in-addr.arpa. {
	primary 127.0.0.1;
	key rndckey;
}

#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#


host xbox.bencloud.net {
    hardware ethernet 00:12:5a:80:cb:c4;
    fixed-address 10.0.0.3;
}
host benap.bencloud.net {
    hardware ethernet 00:16:c7:a0:c2:b8;
    fixed-address 10.0.0.2;
}
subnet 10.0.0.0 netmask 255.255.255.0 {
    interface br0;
    range 10.0.0.50 10.0.0.128;
    default-lease-time 6000;
    max-lease-time 7200;
    option domain-name "bencloud.net";
    option subnet-mask 255.255.255.0;
    option broadcast-address 10.0.0.255;
    option routers 10.0.0.1;
    option domain-name-servers 10.0.0.1;
    option time-offset -3600;


}
and here is my named.conf

Code:
// Red Hat BIND Configuration Tool
// 
// Default initial "Caching Only" name server configuration
//
include "/etc/rndc.key";

controls {inet 127.0.0.1 allow { localhost; } keys { rndckey; };};

options {

forwarders {	192.168.2.1 port 53;
};






directory "/var/named";
	dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
	/*
	 * 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;
};

zone "51.92.69.IN-ADDR.ARPA." IN {
	type master;
	file "69.92.51.db";
};
zone "0.0.10.IN-ADDR.ARPA." IN {
	type master;
	file "10.0.0.db";
        allow-update { key rndckey; };
        notify yes;
};
zone "bencloud.net." IN {
	type master;
	file "bencloud.net.db";
        allow-update { key rndckey; };
        notify yes;
};
zone "." IN {
	type hint;
	file "named.root";
};

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

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

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

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.ip6.arpa." IN {
        type master;
	file "named.ip6.local";
	allow-update { none; };
};

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

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

 // add the following section. A log file "dns-security.log" will be created
 // in the named directory
 logging {
    category dnssec   { security_log; };
    category update   { security_log; };
    category security { security_log; };

    channel security_log {
        file "dns-security.log" versions 5 size 20m;
            // every time the log grows over 20 Mbyte, it will
            // backup and rollover. Maximum 5 backups will be kept.
        print-time yes;
        print-category yes;
        print-severity yes;
        severity info;
    };
 };
I'm connected over ethernet and the hostname of my laptop is bencomp.bencloud.net (should I just set it to bencomp?). No matter howman
 
Old 03-14-2009, 03:55 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It certainly *sounds* like you're doing everything right.

1. Here are a couple of other links that might help:

http://nitinb.blogspot.com/2005/02/c...in-redhat.html

http://www.debian-administration.org/articles/343

2. Make sure you don't have some other DHCP server in the mix (for example, a DSL modem or a wireless base station might also have DHCP enabled by default)

3. Assuming this is an internal LAN (e.g. home or office), maybe something like "bencloud.local" might be a better domain name (at least to get everything working).

4. It looks like maybe you have both 192.168.* and 10.0.* internal subnets? Perhaps it might be easier just to make everything 192.168 (with perhaps a separate 192.168.x and 192.168.y)?

'Hope that helps .. PSM
 
Old 03-14-2009, 04:17 PM   #3
ACiD GRiM
LQ Newbie
 
Registered: Mar 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the reply. It turns out i *was* doing everything right, but Fedora 10 isn't sending its hostname to DHCP. it turns out that my windows computer, and my access point are working correctly and I have dns names for them.
 
Old 03-15-2009, 02:02 AM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
OK - one other thing to look at is to make sure DHCP_HOSTNAME is configured:

http://www.digitalpeer.com/id/setting

http://www.experts-exchange.com/OS/M..._22468493.html

Quote:
/etc/sysconfig/network-scripts/ifcfg-ethx =>
# make sure this line is has no settings on it!
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=01:01:01:01:01:01
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=myhost
USERCTL=no
PEERDNS=yes

'Hope that helps .. PSM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Problem with SUDO : sudo: pam_authenticate: Module is unknown cristoph_ Linux - Software 2 03-02-2009 07:12 PM
sudo blkid vs. sudo fdisk -l problems alienexplorers Linux - Newbie 1 01-13-2009 12:35 AM
cvs [commit aborted]: 'root' is not allowed to commit files r_ramya06 Linux - Newbie 5 07-08-2008 09:04 AM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration