[RESOLVED] Client not recieving DNS information through DHCP
Posted: 2012/01/25 00:03:33
Hello folks! First post for me.
I'm a networking student working on my final project for my course. Currently I have a CentOS virtual machine as well as a Lubuntu virtual machine both running in VMware workstation (this is my test environment before I implement them on actual hardware).
I have configured both DHCP and DNS on my CentOS server (entmain.foes.com 192.168.0.1/24) and my Lubuntu client is picking up address information via DHCP but cannot resolve any hostnames on the domain.
[code]
localadmin@linclient1:~$ dig foes.com
; <<>> DiG 9.7.3 <<>> foes.com
;; global options: +cmd
;; connection timed out; no servers could be reached
localadmin@linclient1:~$ nslookup 192.168.0.1
;; connection timed out; no servers could be reached
[/code]
I can do successful nslookups on my server, however.
[code]
[root@entmain Desktop]# nslookup 192.168.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
1.0.168.192.in-addr.arpa name = entmain.foes.com.
[root@entmain Desktop]# nslookup entmain.foes.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: entmain.foes.com
Address: 192.168.0.1
[/code]
Here are relevant config files:
[code]
#dhcpd.conf
DHCPDARGS=eth0;
ddns-updates on;
ddns-update-style ad-hoc;
ddns-domainname "foes.com";
allow unknown-clients;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.4;
option domain-name-servers 192.168.0.1;
option domain-name "foes.com";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.150 192.168.0.199;
}
[/code]
[code]
#named.conf
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { 192.168.0.0/24;localhost; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "foes.com" IN {
type master;
allow-transfer { 192.168.0.0/24; };
allow-query { any; };
file "/etc/named/foes.com";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
allow-transfer { 194.168.0.0/24; };
allow-query { any; };
file "/etc/named/0.168.192.in-addr.arpa";
};
include "/etc/named.rfc1912.zones";
[/code]
[code]
$ORIGIN foes.com.
$TTL 3D
foes.com. IN SOA entmain.foes.com admin.foes.com. (
201201232 ; serial no yyyymmddn
1h ; refresh
3600 ; retry
1w ; expire
1d ; cache time
)
foes.com. IN NS entmain.foes.com.
foes.com. IN MX 10 entmail.foes.com.
entmain IN A 192.168.0.1
entmail IN A 192.168.0.2
entvpn IN A 192.168.0.3
entfirewall IN A 192.168.0.4
[/code]
[code]
$ORIGIN 0.168.192.in-addr.arpa.
$TTL 1D
0.168.192.in-addr.arpa. IN SOA entmain.foes.com. admin.foes.com. (
201201232 ; serial no yyyymmddn
1h ; refresh
3600 ; retry
1w ; expire
1d ; cache time
)
IN NS entmain.foes.com.
1 IN PTR entmain.foes.com.
2 IN PTR entmail.foes.com.
3 IN PTR entvpn.foes.com.
4 IN PTR entfirewall.foes.com.
[/code]
If someone can explain where I went wrong and why my client can't resolve any hostnames it would be greatly appreciated! Let me know if any other information is required.
I'm a networking student working on my final project for my course. Currently I have a CentOS virtual machine as well as a Lubuntu virtual machine both running in VMware workstation (this is my test environment before I implement them on actual hardware).
I have configured both DHCP and DNS on my CentOS server (entmain.foes.com 192.168.0.1/24) and my Lubuntu client is picking up address information via DHCP but cannot resolve any hostnames on the domain.
[code]
localadmin@linclient1:~$ dig foes.com
; <<>> DiG 9.7.3 <<>> foes.com
;; global options: +cmd
;; connection timed out; no servers could be reached
localadmin@linclient1:~$ nslookup 192.168.0.1
;; connection timed out; no servers could be reached
[/code]
I can do successful nslookups on my server, however.
[code]
[root@entmain Desktop]# nslookup 192.168.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
1.0.168.192.in-addr.arpa name = entmain.foes.com.
[root@entmain Desktop]# nslookup entmain.foes.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: entmain.foes.com
Address: 192.168.0.1
[/code]
Here are relevant config files:
[code]
#dhcpd.conf
DHCPDARGS=eth0;
ddns-updates on;
ddns-update-style ad-hoc;
ddns-domainname "foes.com";
allow unknown-clients;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.4;
option domain-name-servers 192.168.0.1;
option domain-name "foes.com";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.150 192.168.0.199;
}
[/code]
[code]
#named.conf
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { 192.168.0.0/24;localhost; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "foes.com" IN {
type master;
allow-transfer { 192.168.0.0/24; };
allow-query { any; };
file "/etc/named/foes.com";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
allow-transfer { 194.168.0.0/24; };
allow-query { any; };
file "/etc/named/0.168.192.in-addr.arpa";
};
include "/etc/named.rfc1912.zones";
[/code]
[code]
$ORIGIN foes.com.
$TTL 3D
foes.com. IN SOA entmain.foes.com admin.foes.com. (
201201232 ; serial no yyyymmddn
1h ; refresh
3600 ; retry
1w ; expire
1d ; cache time
)
foes.com. IN NS entmain.foes.com.
foes.com. IN MX 10 entmail.foes.com.
entmain IN A 192.168.0.1
entmail IN A 192.168.0.2
entvpn IN A 192.168.0.3
entfirewall IN A 192.168.0.4
[/code]
[code]
$ORIGIN 0.168.192.in-addr.arpa.
$TTL 1D
0.168.192.in-addr.arpa. IN SOA entmain.foes.com. admin.foes.com. (
201201232 ; serial no yyyymmddn
1h ; refresh
3600 ; retry
1w ; expire
1d ; cache time
)
IN NS entmain.foes.com.
1 IN PTR entmain.foes.com.
2 IN PTR entmail.foes.com.
3 IN PTR entvpn.foes.com.
4 IN PTR entfirewall.foes.com.
[/code]
If someone can explain where I went wrong and why my client can't resolve any hostnames it would be greatly appreciated! Let me know if any other information is required.