[Techtalk] bind alias not working
Noir
acknak_halflife at yahoo.co.uk
Mon Jan 23 22:10:12 EST 2006
My "http://www.example.com" is not working; however,
"http://example.com" works fine.
nslookup for "example.com" is ok but nslookup for
mail.example.com or www.example.com gives a
"Non-existent domain" error.
It listens on a private IP and gets NAT'ed out through
the firewall.
Is there anything I am missing? nslookup should work
without any tweaking of apache or MTA.
TIA.
Bind version is 9.3.1.
The host/ computer name is - test
The domain name is - example.com.
Here's my db.example.com file
$TTL 3h
@ IN SOA test.example.com. root.example.com. (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS test.example.com.
IN MX 10 test.example.com.
localhost IN A 127.0.0.1
test IN A 192.168.25.55
www IN CNAME test
mail IN CNAME test
Here's my db.192.168.25 file
$TTL 3h
@ IN SOA test.example.com. root.test.example.com. (
43 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS test.example.com.
55 IN PTR test.example.com.
1 IN PTR localhost.
Here's my named.conf file -
acl clients {
localnets;
192.168.25.55;
::1;
};
options {
version "heh";
listen-on { any; };
allow-recursion { clients; };
};
logging {
category lame-servers { null; };
};
// Standard zones
zone "." {
type hint;
file "standard/root.hint";
};
zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};
zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};
zone "com" {
type delegation-only;
};
zone "net" {
type delegation-only;
};
// Master zones
//
zone "db.example.com" {
type master;
file "master/db.example.com";
zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "master/db.192.168.1";
};
___________________________________________________________
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
More information about the Techtalk
mailing list