I've installed the bind9 DNS software in my Ubuntu Linux system. After some configurations I can access two "domains" in local:
*.dcloud -> wildcard to a Apache VirualHost.
fernando -> points to another Apache VirtualHost.
It's working in my localhost. But when I set my network IP as DNS server in anothers machines they don't recognize my DNSs. I've been looking around the internet to fix it but nothing was found.
So I'm posting it here before give up.
Checkout my configurations:
/etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.0.200
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
broadcast 192.168.0.255
/etc/bind/named.conf.local
zone "dcloud" {
type master;
file "/etc/bind/zones/dcloud.db";
};
zone "fernando" {
type master;
file "/etc/bind/zones/fernando.db";
};
zone "200.0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev200.0.168.192.in-addr.arpa";
};
/etc/bind/zones/dcloud.db
$TTL 604800
@ IN SOA dcloud. dcloud. (
2009051301 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
604800) ; Default TTL
;
@ IN NS ns1.dcloud.
* IN A 192.168.0.200
/etc/bind/zones/fernando.db
$TTL 604800
@ IN SOA fernando. fernando. (
2009051301 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
604800) ; Default TTL
;
@ IN NS ns1.fernando.
* IN A 192.168.0.200
/etc/bind/zones/rev200.0.168.192.in-addr.arpa
$TTL 1d;
$ORIGIN 0.168.192.IN-ADDR.ARPA.
@ IN SOA ns1.fernando. fernando. (
2009051301
7200
120
2419200
604800
)
IN NS ns1.fernando.
1 IN PTR ns1.fernando.
My VirtualHosts file
<VirtualHost *:80>
ServerName fernando
DocumentRoot /home/fschuindt/htdocs/
<Directory "/home/fschuindt/htdocs/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName dcloud
ServerAlias *.dcloud
DocumentRoot /home/fschuindt/htdocs/dcloud/
<Directory "/home/fschuindt/htdocs/dcloud/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
If you guys also need a result of my netstat -na, here is it: http://pastebin.com/pjwsYe6Q