funeralcrasher: (Default)
funeralcrasher ([personal profile] funeralcrasher) wrote2006-05-29 01:57 pm

Another vhost question

Going back to my two sites, "fu" and "bar" for a moment..

Should an entry be added in /etc/hosts for each, so that when another PC on the network types in http://fu they will be taken to the fu web content? Or am I confusing hosts with DNS?

[identity profile] pkbarbiedoll.livejournal.com 2006-05-31 07:46 pm (UTC)(link)
I'm using BIND version 9.3.1-8.

Here are my master/talon files:

My zone is named "talon".

Talon:/etc/named.d # more /var/lib/named/master/talon

====================================
$TTL 3d
@ IN SOA @. root.@. (
2006052900 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

talon. IN NS georgiaoffroad.talon.
georgiaoffroad IN A 192.168.1.102
techman IN A 192.168.1.102

====================================

Talon:/etc/named.d # more /var/lib/named/master/1.168.192.in-addr.arpa

====================================
$TTL 3d
@ IN SOA @. root.@. (
2006052900 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

1.168.192.in-addr.arpa. IN NS georgiaoffroad.talon.
102.1.168.192.in-addr.arpa. IN PTR georgiaoffroad.talon.
102.1.168.192.in-addr.arpa. IN PTR techman.talon.
====================================

[identity profile] darkvervain.livejournal.com 2006-05-31 11:26 pm (UTC)(link)
It doesn't like the @ IN SOA @. root.@. ( line at all.

Try expanding the '@' on the line to the domain name and see if that helps.


[identity profile] pkbarbiedoll.livejournal.com 2006-06-01 02:40 am (UTC)(link)
I'm not sure I follow what you mean by expand.

[identity profile] darkvervain.livejournal.com 2006-06-01 06:16 am (UTC)(link)
The '@' is a placeholder for the domain itself, but for some reason it seems to have problems with it. :(

[identity profile] darkvervain.livejournal.com 2006-05-31 11:30 pm (UTC)(link)
try:

@ IN SOA georgiaoffroad.talon. root.georgiaoffroad.talon. (
2006052900 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum


See if that helps?
(Replace the SOA record in both files and do a rndc reload)