I'm setting up DNS using bind9 on one of my Ubuntu (12.10) boxes under my home network because my router doesn't support DD-WRT or its own DNS.
I set up a zone for "mydomain.net" with an A record for test.mydomain.net and have it pointing to 192.168.1.6 (the statically-assigned ip of the machine in question).
I want to be able to access (via HTTP/browser, mainly) this machine by just using http://test/
, without having to type in the mydomain.net portion.
I have everything else correctly configured, because I can successfully access test.mydomain.net
and get the correct Apache response, but I cannot find any particular setting that would allow me to access just http://test/
.
Here is my named.conf.local file
zone "mydomain.net" {
type master;
file "/etc/bind/db.mydomain.net";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192";
};
and my db.mydomain.net zone file
; BIND data file for local
;
$TTL 604800
@ IN SOA mydomain.net. tomprogramming.gmail.com. (
2013052603 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN A 192.168.1.6
;
@ IN NS ns.mydomain.net.
@ IN A 192.168.1.6
@ IN AAAA ::1
ns IN A 192.168.1.6
test IN A 192.168.1.6