I have recently installed ubuntu 13.10 server on an "OEM Production 2550L2D-MxPC Intel NM10 2 x 204Pin Intel GMA 3650 Black Mini / Booksize Barebone System - OEM " with 8GB of RAM and a 1TB HDD. during the install I installed SSH and DNS from the selection menu. After the install I installed isc-dhcp-server, squid, and webmin.
I am trying to setup a web filter/gateway, I want to test each section of the device as it is setup because I have had some problems with applications not being able to get through the gateway on test machines. Currently I am trying to get DNS resolution working and while I have setup DHCP with the key for DNS and have no errors stopping the daemons from loading, I am unable to resolve host names of local machines.
I have tried pinging the gateway (named Cerberus) from a windows machine and an android tablet.
I am able to ping the machine with IP 192.168.1.10
I am able to ping the machine with domain name keystoneaquaria.com (setup on local DNS)
I am able to ping windows machines with hostnames (angels-HP, Randy-HP, Robbie-HP, angel-hp)
I am able to ping Ubuntu machines (Media-1, Cerberus, Kerberus) with respective IP's 192.168.1.25, 192.168.1.10, 192.168.1.11
I am unable to ping Ubuntu machines with hostnames Media-1, Cerberus, Kerberus
Does anyone know how to resolve this issue of not being able to resolve Ubuntu hostnames on local network with local DNS (Bind9), and Ubuntu DHCP (isc-dhcp-server)?
I have included my config files for Bind9, isc-dhcp-server below!
/etc/bind/named.conf
Code:
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
/etc/bind/named.conf.options
Code:
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
forwarders {
192.168.1.1;
};
listen-on-v6 { any; };
};
/etc/bind/named.conf.local
Code:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
key "rndc-key" {
algorithm hmac-md5;
secret "qFsmFzirhBcSMWs1+sV3wg==";
};
zone "keystoneaquaria.com" {
type master;
file "/etc/bind/db.keystoneaquaria.com";
};
/etc/bind/db.keystoneaquaria.com
Code:
;
; BIND data file for keystoneaquaria
;
$TTL 604800
@ IN SOA keystoneaquaria.com. root.keystoneaquaria.com. (
4
604800
86400
2419200
604800 )
;
@ IN NS keystoneaquaria.com.
@ IN A 192.168.1.10
@ IN AAAA ::1
ns IN A 192.168.1.10
Cerberus. IN A 192.168.1.10
/etc/bind/db.192
Code:
;
; BIND reverse data file for 192.168.1 interface
;
$TTL 604800
@ IN SOA ns.keystoneaquaria.com. root.keystoneaquaria.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
1 IN PTR ns.keystoneaquaria.com.
2 IN PTR ibr.keystoneaquaria.com.
/etc/dhcp/dhcpd.conf
Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style interim;
update-static-leases on;
key "rndc-key" {
algorithm hmac-md5;
secret "qFsmFzirhBcSMWs1+sV3wg==";
};
allow unknown-clients;
use-host-decl-names on;
#building DNS Zones
zone keystoneaquaria.com. {
primary localhost;
key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
primary localhost;
key rndc-key;
}
# option definitions common to all supported networks...
option domain-name "keystoneaquaria.com";
option domain-name-servers 192.168.1.10, 192.168.2.1, 192.168.1.1;
default-lease-time 600;
max-lease-time 800;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
#subnet 10.254.239.0 netmask 255.255.255.224 {
# range 10.254.239.10 10.254.239.20;
# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
#subnet 10.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 10.254.239.40 10.254.239.60;
# option broadcast-address 10.254.239.31;
# option routers rtr-239-32-1.example.org;
#}
# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
ddns-updates on;
range 192.168.1.20 192.168.1.50;
option domain-name-servers 192.168.1.10;
option domain-name "keystoneaquaria.com";
option routers 192.168.1.1;
# option netbios-node-type 2;
ddns-domainname "keystoneaquaria.com";
ddns-rev-domainname "in-addr.arpa.";
max-lease-time 800;
}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
#}
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.fugue.com;
#}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
/etc/dhcp/dhclient.conf
Code:
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#send host-name "andare.fugue.com";
send host-name = gethostname();
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers,
dhcp6.domain-search, dhcp6.fqdn,
dhcp6.name-servers, dhcp6.sntp-servers;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}
Bookmarks