dns/bind with apache
Barry Margolin
barmar at genuity.net
Thu Aug 2 18:17:10 UTC 2001
In article <9kasum$5ko at pub3.rc.vix.com>, Alex Sorokin <retzar at si.rr.com> wrote:
>I'm having a problem with apache. I checked the apache config, and i've
>asked others,and it looks correct... Whenever I try to start it up, it gives
>me this error. "Cannot resolve host name mydomain.com --- exiting!"
>The computer that apache is installed is a multidomain machine, Included
>is the zone config file for one of the virtual hosts... can someone tell me
>if anything
>here would justify such an error?
>
>"$TTL 30000
>@ IN SOA mydomain.mydomain.com. mydomain.com.
>(
> 20010716 ; Serial
> 3600 ; Refresh
> 900 ; Retry
> 3600000 ; Expire
> 3600 ) ; Minimum
>
>
>localhost IN A 127.0.0.1
>mydomain IN A 123.123.123.123 #the computers IP address
That A record creates an address for mydomain.mydomain.com, but not for
just mydomain.com. You need:
@ IN A 123.123.123.123
>mail IN CNAME mydomain
>#localhost IN CNAME mydomain
>ftp IN CNAME mydomain
>
>
>@ IN MX 10 mail.mydomain.com.
> IN NS mydomain.mydomain.com.
> IN PTR localhost
>
>(I used the same name for the hostname and the domain name incase your
>wondering)
>
>
>Any help would be appreciated. thank you
>
>
>
>
>
--
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list