LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Dns + Dhcp (https://www.linuxquestions.org/questions/linux-networking-3/dns-dhcp-188419/)

james.farrow 06-01-2004 09:15 AM

Dns + Dhcp
 
This is my /var/log/messages

[root@turtle james]# tail -f /var/log/messages
Jun 1 14:28:55 turtle named[5300]: command channel listening on 0.0.0.0#953
Jun 1 14:28:55 turtle named[5300]: zone 0.1.168.192.in-addr.arpa/IN: loaded serial 1
Jun 1 14:28:55 turtle named[5300]: zone mytrek.com/IN: loaded serial 1
Jun 1 14:28:55 turtle named[5300]: running
Jun 1 14:29:17 turtle named[5300]: shutting down: flushing changes
Jun 1 14:29:17 turtle named[5300]: stopping command channel on 0.0.0.0#953
Jun 1 14:29:17 turtle named[5300]: no longer listening on 127.0.0.1#53
Jun 1 14:29:17 turtle named[5300]: no longer listening on 192.168.1.1#53
Jun 1 14:29:17 turtle named[5300]: exiting
Jun 1 14:29:17 turtle named: succeeded
Jun 1 14:29:31 turtle named: named startup succeeded
Jun 1 14:29:31 turtle named[5334]: starting BIND 9.2.3 -u named
Jun 1 14:29:31 turtle named[5334]: using 1 CPU
Jun 1 14:29:31 turtle named[5334]: loading configuration from '/etc/named.conf'
Jun 1 14:29:31 turtle named[5334]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 1 14:29:31 turtle named[5334]: listening on IPv4 interface eth0, 192.168.1.1#53
Jun 1 14:29:31 turtle named[5334]: zone '0.1.168.192.in-addr.arpa' allows updates by IP address, which is insecure
Jun 1 14:29:31 turtle named[5334]: command channel listening on 0.0.0.0#953
Jun 1 14:29:31 turtle named[5334]: zone 0.1.168.192.in-addr.arpa/IN: loaded serial 1
Jun 1 14:29:31 turtle named[5334]: zone mytrek.com/IN: loaded serial 1
Jun 1 14:29:31 turtle named[5334]: running
Jun 1 14:46:06 turtle dhcpd: Unable to add forward map from WINXP.mytrek.com to 192.168.1.200: not a zone
Jun 1 14:46:06 turtle dhcpd: Wrote 2 leases to leases file.
Jun 1 14:46:06 turtle dhcpd: DHCPREQUEST for 192.168.1.200 from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:06 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:14 turtle dhcpd: Unable to add forward map from WINXP.mytrek.com to 192.168.1.200: not a zone
Jun 1 14:46:14 turtle dhcpd: DHCPREQUEST for 192.168.1.200 from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:14 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:38 turtle dhcpd: DHCPDISCOVER from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:38 turtle dhcpd: DHCPOFFER on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:38 turtle dhcpd: Unable to add forward map from WINXP.mytrek.com to 192.168.1.200: not a zone
Jun 1 14:46:38 turtle dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.1) from 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:46:38 turtle dhcpd: DHCPACK on 192.168.1.200 to 00:40:f4:19:a8:29 (WINXP) via eth0
Jun 1 14:59:58 turtle ifup-ppp: pppd started for UK_Online_modem on /dev/ttyS1 at 115200


can anyone give me any clues as to what is happening?

my dhcpd.conf

# dhcpd.conf
#

#The crucial line for succesful DNS updates when DHCP lease is renewed.
#Don't move any further below
ddns-update-style interim;


#Turn DDNS on
ddns-updates on;
ddns-ttl 30;


# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

#The secret key also defined in the BIND named.conf .Used to ensure #authenticity of hosts allowed to update DNS records.
include "/etc/rndc.key";

# Option for the listed subnet, including address range to lease out
# and gateway address
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200 ;
option routers 192.168.1.1;#Gateway address for clients
option broadcast-address 192.168.1.255;
option domain-name "mytrek.com";
option domain-name-servers 192.168.1.1;

#Force clients to release any current IP it may 'own' before
#satisfying request for new one
one-lease-per-client on;

# Allow only server to update records based on hostname passed
# by client
deny client-updates;
default-lease-time 259200; # 3 days
max-lease-time 43200; # 5 Days
}



DHCPDARGS=eth0 ;


and my named.conf

# /etc/named.conf


acl dhcp-srvr {192.168.1.1;};

options {
directory "/var/named/";
};

include "/etc/rndc.key";

controls {
inet 0.0.0.0 port 953
allow { 127.0.0.1; } keys { rndckey; };
};

//This staement associates a key to a server
server 127.0.0.1 {
keys { turtle.mytrek.com.;};
};

key turtle.mytrek.com. {
algorithm hmac-md5;
secret "fhgvJhG7aIbWA7I6K6DOqWByGqfdEtXdmud4kOjRTbTlBHFwy8msB672EqZs";
};



zone "." IN {
type hint;
file "named.ca";
};


zone "mytrek.com" in {
type master;
file "mytrek.com.zone";
allow-update { dhcp-srvr;};
};

zone "0.1.168.192.in-addr.arpa" IN {
type master;
file "192.168.rev";
allow-update { dhcp-srvr; };
};

umber of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
[root@turtle named]#

any suggestions are most welcome!!


All times are GMT -5. The time now is 01:30 AM.