Click to See Complete Forum and Search --> : host


rioguia
11-01-2003, 10:00 AM
i just modified my dns server to accomdate a domain hosted on my apache server. linux apache web server (Charles Aulds) says cryptically:When setting up hamed-based hosts that all apply to the same IP address,you should enter the hostnhames as Canonical Name or CNAME records in theDNS server for the domian. This will place them in the DNS as aliases for
the one true hostname that should exist (as an Address or A) record in theDNS.

when i reload named, i get the following from /var/log/messages

when i reload named, i get the following from /var/log/messages

[root@ns1 postfix]# tail /var/log/messages
Nov 1 08:54:14 ns1 named[3985]: command channel listening on 127.0.0.1#953
Nov 1 08:54:14 ns1 named[3985]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2003103001
Nov 1 08:54:14 ns1 named[3985]: zone 149.92.66.in-addr.arpa/IN: loaded serial 2003103001
Nov 1 08:54:14 ns1 named[3985]: zone substantis.com/IN: loaded serial 2003110101
Nov 1 08:54:14 ns1 named[3985]: dns_master_load: named.lubuto.org:13: ignoring out-of-zone data (ns1.substantis.com)
Nov 1 08:54:14 ns1 named[3985]: dns_master_load: named.lubuto.org:15: ignoring out-of-zone data (mail.substantis.com)
Nov 1 08:54:14 ns1 named[3985]: zone lubuto.org/IN: loaded serial 2003103103
Nov 1 08:54:14 ns1 named[3985]: running
Nov 1 08:54:14 ns1 named[3985]: zone substantis.com/IN: sending notifies (serial 2003110101)
Nov 1 08:54:14 ns1 named[3985]: zone lubuto.org/IN: sending notifies (serial 2003103103)

here are my new files for substantis.com and lubutu.org
NAMED.SUBSTANTIS.COM
$TTL 3H
substantis.com. 1D IN SOA ns1.substantis.com. mworden.substantis.com. (
2003110102
2H
1H
1W
1D )
substantis.com. 1W IN NS ns1.substantis.com.
substantis.com. 1W IN NS ns1.speakeasy.net.
substantis.com. 1W IN NS ns2.speakeasy.net.
substantis.com. 3H IN MX 10 mail.substantis.com.
localhost.substantis.com. 1W IN A 127.0.0.1
substantis.com. 3H IN A 66.92.149.196
ns1.substantis.com. 1W IN A 66.92.149.196
www.substantis.com. 3H IN A 66.92.149.196
mail.substantis.com. 3H IN A 66.92.149.196

LUBUTO.ORG
$TTL 3H
lubuto.org. 1D IN SOA ns1.substantis.com. mworden.substantis.com. (
2003103103
2H
1H
1W
1D )
lubuto.org. 1W IN NS ns1.substantis.com.
lubuto.org. 1W IN NS ns1.speakeasy.net.
lubuto.org. 1W IN NS ns2.speakeasy.net.
lubuto.org. 3H IN MX 10 mail.substantis.com.
lubuto.org. 3H IN A 66.92.149.196
ns1.substantis.com. 1W IN A 66.92.149.196
www.lubuto.org. 3H IN A 66.92.149.196
mail.substantis.com. 3H IN A 66.92.149.196
www.lubuto.org 1W IN CNAME ns1.substantis.com

fredg
11-01-2003, 10:31 AM
Delete and change the indicated lines, updated the serial number, reload the server.


LUBUTO.ORG
$TTL 3H
lubuto.org. 1D IN SOA ns1.substantis.com. mworden.substantis.com. (
2003103103
2H
1H
1W
1D )
lubuto.org. 1W IN NS ns1.substantis.com.
lubuto.org. 1W IN NS ns1.speakeasy.net.
lubuto.org. 1W IN NS ns2.speakeasy.net.
lubuto.org. 3H IN MX 10 mail.substantis.com.
lubuto.org. 3H IN A 66.92.149.196
ns1.substantis.com. 1W IN A 66.92.149.196 <--DELETE
www.lubuto.org. 3H IN A 66.92.149.196 <--DELETE
mail.substantis.com. 3H IN A 66.92.149.196 <--DELETE
www.lubuto.org 1W IN CNAME www.substantis.com <--CHANGE maybe. Seems to lead to a test page now.

rioguia
11-01-2003, 07:15 PM
right again as per usual fred. thank you for your kind response.

i have langfeldt on dns servers. its got some good theory exercises but not that helpful to me. i've looked at the cricket book but found it requires more time than i have to get through it. any suggestions (my postfix book is still on order so i'm thinking i should spend some time getting this right)?

fredg
11-01-2003, 07:41 PM
I made a mistake here.
You want to leave this line in

www.lubuto.org. 3H IN A 66.92.149.196 <--DELETE......NO!


Postfix isn't all that deep, until you muddy it up with virtual domains and other things. Virtual domains aren't that hard, but the documentation isn't especially helpful. I have them running here on 2.0.16 with no problems, so I can pass you meaninful config files if you need them.

rioguia
11-02-2003, 03:50 PM
that's great fred! regarding your post about the test page. its very curious. i have an index.html document in my virtual domain document root pursuant to my directive
DocumentRoot /var/www/html/vh2 (see my virtual configuration below). i've checked privileges on the directory and its contents and even chmod 644 the entire directory and its contents just for safety's sake but the lubuto index won't display.

here is the (hopefully) relevant portion of my conf file. as you can see, i had a little problem making this document root structure work so i commented out the vh1 (virtual host for substantis.com) and placed the contents of my primary virtual host the same as my original document root configuration (per Ault's directions).

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin webmaster@substantis.com
DocumentRoot /var/www/html
ServerName www.substanis.com
ErrorLog logs/noname.substantis.com-error_log
CustomLog logs/noname.substanis.com-access_log common
</VirtualHost>
#
# <VirtualHost *>
# ServerAdmin webmaster@.substantis.com
# DocumentRoot /var/www/html/vh1
# ServerName www.substantis.com
# ErrorLog logs/vh1.substantis.com-error_log
# CustomLog logs/vh1.substantis.com-access_log common
#</VirtualHost>
#
<VirtualHost *:80>
ServerAdmin webmaster@lubuto.org
DocumentRoot /var/www/html/vh2
ServerName www.lubuto.org
ErrorLog logs/vh2.lubuto.org-error_log
CustomLog logs/vh2.lubuto.org-access_log common
</VirtualHost>

fredg
11-02-2003, 05:15 PM
Sorry, I'm not going to be of any help to you with Apache and virtual hosting.

There is Webmin and its Virtualmin addin that may or may not meet your needs though.

www.webmin.com

rioguia
11-03-2003, 11:01 AM
fred

thanks for all your help (again). inserting the line
www.lubuto.org. 3H IN A 66.92.149.196
back into the file and the server reported back lame from DNS reports. I don't understand what could be wrong. After I removed this line, the DNS notes that my www entry is a CNAME but the name resolves correctly. regarding the virtual host, i am going to repost that to a separate thread because it seems like a separate issue.

fredg
11-03-2003, 11:15 AM
Well, I just looked at the DNS report for lubuto.org. I didn't see any lame servers mentioned, but there are no glue records - not a big deal. Also, you probably don't need ot want that CNAME to www.substantis.com.

However, you may be changing stuff after I check, so results may vary.

rioguia
11-04-2003, 04:25 AM
fred: you were correct. i needed to remove the cname and replace the correct A record (is it possible that the CNAME and the correct A record conflicted sufficiently to trigger the lame server?).

here is what the file looks like now. i did a dnsreport query which still complains about the CNAME but i suspect that is because the other secondary servers have not updated their file yet. i'll check this one later in the morning again and report back.

$TTL 3H
lubuto.org. 1D IN SOA ns1.substantis.com. mworden.substantis.com. (
2003110301
2H
1H
1W
1D )
lubuto.org. 1W IN NS ns1.substantis.com.
lubuto.org. 1W IN NS ns1.speakeasy.net.
lubuto.org. 1W IN NS ns2.speakeasy.net.
lubuto.org. 3H IN MX 10 mail.substantis.com.
lubuto.org. 3H IN A 66.92.149.196
www.lubuto.org. 3H IN A 66.92.149.196

fredg
11-04-2003, 08:48 AM
This zone looks good to me.

I checked it at DNSReports and it's still throwing that CNAME warning. I notice the TTL on the CNAME is rather long - 1 week, so maybe this is just lying around in cache somewhere. I would ignore it for the time being. And yes, the reports shows serial number discrepencies for the zone, so one or more of the servers don't yet have the new file.

The lame server thing might be a glitch or timing problem. If a server gets a notify about changes, but doesn't immediatly loead the zone, it can come up lame.