cant seem to get bind working to host viirtual server..
I have a paid for domain "xtecanada.com" and a dyndns domain..I am trying to configure bind to be authorattive for bot hof these servers so I can host both web servers by name..
here is my named.conf file:
Quote:
#
################################################## ##############################
# Server Configuration
#
options {
# Set the working directory from which all relative paths are based
# For the win2k default install "C:\WINNT\system32\dns\etc"
#
directory "/var/lib/named/etc/bind";
# RECURSION - Required for caching servers
# Default: yes
# Values : yes, no
#
# yes: Attempt to resolve requests we are not authoritative for
# no : Do not resolve requests we are not authoritative for
#
recursion yes;
# ALLOW-RECURSION - Who may use our caching server?
# Default: any;
# Values : any, none, (addresslist)
#
# any : anybody may use the caching server
# none : noone may use the caching server
# address: List of IP addresses that may use the caching server.
#
allow-recursion { localhost; localnets; };
# FORWARD - Recommended for caching servers
# Default: first
# Values : first, only
#
# first: Query "forwarders" first, then resolve request ourself
# only : Only query the "forwarders" to resolve requests
#
#forward first;
# FORWARDERS - Required if "forward" is used
# Default: (no forwarding)
# Values : (addresslist)
#
# It is recommended that you use your ISP's caching server addresses
# Example: forwarders { 127.0.0.1; 127.0.0.2; }
#
#forwarders { };
# QUERY SOURCE - Useful for caching servers behind a firewall
# Default: address * port *
# Values : The IP address and port to use as the source of queries to other servers
#
#query-source address * port 53;
# NOTIFY - Relevant to authoritative servers
# Default: yes
# Values : yes, explicit, no
#
# yes : Send DNS NOTIFY messages to slave servers in zone NS records when zone changes
# explicit: Only send DNS NOTIFY messages to "also-notify" hosts
# no : Never automatically send DNS NOTIFY messages
#
notify no;
};
################################################## ##############################
# Logging Configuration
#
logging {
#
# Define channels for the two log files
#
channel query_log {
severity info;
print-time yes;
file "query.log" versions 3 size 100M;
};
channel activity_log {
severity info;
print-time yes;
print-category yes;
print-severity yes;
file "activity.log" versions 3 size 100M;
};
#
# Send the interesting messages to the appropriate channels
#
category queries { query_log; };
category default { activity_log; };
category xfer-in { activity_log; };
category xfer-out { activity_log; };
category notify { activity_log; };
category security { activity_log; };
category update { activity_log; };
#category update-security { activity_log; }; # BIND 9.3 only
#
# Dump all uninteresting messages
#
category network { null; };
category lame-servers { null; };
};
################################################## ##############################
# Zone Configuration
#
#
# Specify the root name servers
#
zone "." IN {
type hint;
file "named.ca";
};
#
#
# Configure ourself as the host for wizzardry.ath.cx
#
zone "wizzardry.ath.cx" IN {
type master;
file "wizzardry.ath.cx.zone";
};
#
# Configure ourself as the host for xtecanada.com
#
zone "xtecanada.com" IN {
type master;
file "xtecanada.com.zone";
};
#
# Reverse IP mapping for 209.197.186.60
#
zone "60.186.197.209.in-addr.arpa" {
type master;
file "209.197.186.rev";
};
here are my zone file's for these two domains
Quote:
$TTL 900 ; 900 seconds default record (T)ime (T)o (L)ive in cache
; wizzardry.ath.cx zone file
;
@ IN SOA ns1.wizzardry.ath.cx. ( ; ns1 is the primary server for wizzardry.ath.cx
admin ; contact email for wizzardry.ath.cx is
admin@wizzardry.ath.cx
2004041700 ; Serial ID in reverse date format
21600 ; Refresh interval for slave servers
1800 ; Retry interval for slave servers
604800 ; Expire limit for cached info on slave servers
900 ) ; Minimum Cache TTL in zone records
;
NS wizzardry.ath.cx ; wizzardry.ath.cx is a host for wizzardry.ath.cx
@ MX 10 mail ; primary mail server
;
localhost A 127.0.0.1 ; localhost connection ip
@ A 209.197.186.60 ; wizzardry.ath.cx's IP address is 209.197.186.60
@ MX 10 mail ; Mail for *@wizzardry.ath.cx is sent to mail.wizzardry.ath.cx
* CNAME @
Quote:
$TTL 900 ; 900 seconds default record (T)ime (T)o (L)ive in cache
; xtecanada.com zone file
;
@ IN SOA ns1.xtecanada.com. ( ; ns1 is the primary server for xtecanada.com
admin ; contact email for xtecanada.com is
admin@xtecanada.com
2004041700 ; Serial ID in reverse date format
21600 ; Refresh interval for slave servers
1800 ; Retry interval for slave servers
604800 ; Expire limit for cached info on slave servers
900 ) ; Minimum Cache TTL in zone records
;
NS xtecanada.com ; xtecanada.com is a host for xtecanada.com
@ MX 10 mail ; primary mail server
;
localhost A 127.0.0.1 ; localhost connection ip
@ A 209.197.186.60 ; xtecanada.com's IP address is 209.197.186.60
@ MX 10 mail ; Mail for *@xtecanada.com is sent to mail.xtecanada.com
* CNAME @
when I use the dig command on wizzardry.ath.cx it comes up with this response
Quote:
# dig wizzardry.ath.cx
; <<>> DiG 9.2.1 <<>> wizzardry.ath.cx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17106
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;wizzardry.ath.cx. IN A
;; ANSWER SECTION:
wizzardry.ath.cx. 86400 IN A 209.197.186.60
;; Query time: 121 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed Apr 27 03:18:24 2005
;; MSG SIZE rcvd: 50
and dig xtecanada.com
Quote:
dig xtecanada.com
; <<>> DiG 9.2.1 <<>> xtecanada.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41437
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;xtecanada.com. IN A
;; ANSWER SECTION:
xtecanada.com. 86400 IN A 216.40.33.117
;; Query time: 115 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed Apr 27 03:19:05 2005
;; MSG SIZE rcvd: 47
I always seem to get my main server page and not my virtual page regardless of which hosts I enter..what am I doing wrong..
Wizzard