[color=#0000FF]I’ve searched til I’m blue in the face, no luck with my specific problem.
Scenario:
Home Lan: Gagabit unmanaged switch, into which is plugged my Webserver, a couple NAS devices, a Laptop, Network printer, and Actiontec 701 DSL Modem/Router.
To avoid setting up a million Port Forwards, I put the webserver (192.168.1.200) in the DMZ zone for the Actiontec.
LAN subnet is: 192.168.1.x (currently using x=100-102 for devices, x=200-205 for webserver)
Default Gateway for all LAN devices, including webserver, is 192.168.1.1 and the webserver is using my IPS’s DNS servers as “Preferred” and “Alternate” DNS Server.
WAN IP on the Actiontec is my Dedicated IP Number.
I have only ONE dedicated IP number, but that shouldn’t be a problem.
I have changed my “real” Dedicated IP number in what follows, for security, to 12.34.56.78
At my registrar, I have private nameservers set to:
ns1.mydomain.us 12.34.56.78
ns2.mydomain.us 12.34.56.78
Both have been setup for a week.
All three Domains are using the private nameservers. I had to do it this way since Moniker won’t accept a “single” NS pointer, it requires 2. (But I can define the private nameservers to use the same IP. Go figure.)
(My desktop PC is normally plugged into the LAN, as well, but for my tests it’s using my other Internet service, isolated on a Comcast Cable Modem. Seperate ISP.)
I have 3 domains I want to host on the webserver (running CentOS 5.2):
mydomain.us, mydomain.org, and mydomain.net
I manually setup mydomain.us before installing VirtualMin.
DNS (CHROOOTED BIND9) is working, since I am able to use my desktop to go to http://www.mydomain.us (and see the webpage I setup in /usr/var/html/index.html), as well as access it for FTP (via ftp.mydomain.com) and SSH (via www.mydomain.com).
Contents of that DNS Zone file as follows.
**********************************************************[/color]
[code:1][color=#FF0000]
$ttl 38400
mydomain.us. IN SOA ns1.mydomain.us. admin.mydomain.us. (
1219107588
10800
3600
604800
38400 )
mydomain.us. IN NS ns1.mydomain.us.
mydomain.us. IN NS ns2.mydomain.us.
mydomain.us. IN A 12.34.56.78
localhost IN A 127.0.0.1
mydomain.us. IN MX 5 mydomain.us.
www.mydomain.us. IN CNAME mydomain.us.
mail.mydomain.us. IN CNAME mydomain.us.
ns1.mydomain.us. IN A 12.34.56.78
ns2.mydomain.us. IN A 12.34.56.78
ftp.mydomain.us. IN A 12.34.56.78[/color][/code:1]
[color=#0000FF]
The above Domain resolves just fine.
I then setup virtual IP’s for use with virtual NICS:
(NOTE: SERVER NIC eth0 is set to 192.168.1.200)
eth0:1 set to 192.168.1.201
eth0:2 set to 192.168.1.202
eth0:3 set to 192.168.1.203
eth0:4 set to 192.168.1.204
eth0:5 set to 192.168.1.205
My problem is that the other two domains (mydomain.net and .org) simply won’t resolve. They time out.
I THINK I’ve set them up in Virtualmin as I should, but am not sure. I am still VERY new at this. But they both have Virtual Server entries in Apache, and Zones in BIND DNS. Here’s one of them, adjusted for security:
*********************************************************[/color]
[code:1][color=#FF0000]$ttl 38400
@ IN SOA ns1.mydomain.us. admin.mydomain.org. (
1219266602
10800
3600
604800
38400 )
@ IN NS ns1.mydomain.us.
mydomain.org. IN A 192.168.1.202
www.mydomain.org. IN A 192.168.1.202
ftp.mydomain.org. IN A 192.168.1.202
m.mydomain.org. IN A 192.168.1.202
localhost.mydomain.org. IN A 127.0.0.1
webmail.mydomain.org. IN A 192.168.1.202
admin.mydomainr.org. IN A 192.168.1.202
mail.mydomain.org. IN A 192.168.1.202
mydomain.org. IN MX 5 mail.mydomain.org.
mydomain.org. IN TXT "v=spf1 a mx a:mydomain.org ip4:192.168.1.200 ip4:192.168.1.202 ?all"[/color][/code:1]
[color=#0000FF]When I tried to manually set up the ORG and NET domains, without using VirtualMin, try as I might I couldn’t get them to point to seperate directories. They would only resolve to the same directory as the US extension (usr/var/www/html/index.html).
I admit I’m a noob, but this shouldn’t be THAT hard. What in the world am I doing wrong?
Thanks in advance.[/color]