Helpful Information
 
 
Category: DNS
Resolve domain without www prefix

Hello- I cannot get domain to resolve without using www prefix.
if I try to add line to dns record like
domain.com. IN A x.x.x.x I get out-of-zone data in error log
What may I change to resolve to both www.domain.com
or just domain.com . What I have below is working fine for www.domain.com but not domain.com--thank you


<VirtualHost x.x.x.x>
DocumentRoot /home/domain/www/
ServerAdmin me@domain.com
ServerName www.domain.com
ServerAlias domain.com *.domain.com
</VirtualHost>



$TTL 86400
@ IN SOA ns1.domain.com. hostmaster.domain.com. (
20010915; Serial
10800 ; Refresh after 3 hrs
3600 ; Retry after 1 hr
604800; Expire after 1 week
86400 ) ; Minimum ttl 1 day
IN NS ns1.domain.com.
IN A x.x.x.x
www IN A x.x.x.x
ftp IN A x.x.x.x

You are missing an A record for ns1.domain.com itself. Your zone record should look like this:

$TTL 86400
@ IN SOA ns1.domain.com. hostmaster.domain.com. (
20010915; Serial
10800 ; Refresh after 3 hrs
3600 ; Retry after 1 hr
604800; Expire after 1 week
86400 ) ; Minimum ttl 1 day
IN NS ns1.domain.com.
ns1 IN A 12.34.56.78
www IN A 12.34.56.78
IN A 12.34.56.78
ftp IN A 12.34.56.78

>> DocumentRoot /home/domain/www/

Remove the trailing slash.

>> ServerAlias domain.com *.domain.com

You don't have wildcard enabled. So just put:

ServerAlias domain.com

If it doesn't work still, provide your REAL domain name.

Thanks freebsd I got it going when I got back from long holiday weekend.

What's your thoughts on FreeBSD as a webserver. I've been thinking about trying it out on another box. Then I can compare the ease of administration maintenance against rh7.1.
Does FreeBSD come with desktop software like gnome or kde?

Thnks

>> Does FreeBSD come with desktop software like gnome or kde?

You should have started a new topic in BSD forum instead. Anyway, yes, FreeBSD comes with both and more. You can install software by compiling/building from src or with precompiled binaries.
Of course, unlike RH, compiling from src could be a nightmare in RH, in FreeBSD, all the configure options, preinstall + postinstall instructions have already been written for you by the port maintainer. So you just need to cd to particular software, say apache, /usr/ports/www/apache13, then run make install clean and that is it. Unlike RPM, compiling/installing software in FreeBSD gives you maximum flexibility/configurability because you can either accept the default options or alter the Makefile directly or even specify configure env options to make, then run make install.
For example:
cd /usr/ports/www/apache13
make PREFIX=/var
make install clean

Note: PREFIX defaults to /usr/local.

Added “(exampledomainname).com” to the host headers in IIS

The method to add it to the host headers was :
1 – go into IIS
2 – properties of (exampledomainname).com
3 – click on the web site tab
4 – click on the advanced button (for web site identification)
5 – put in port “80” and the domain name “(exampledomainname).com” without the www

Subject: the page does not come up when you type the following - http:/(exampledomainname).com
...only when http:/www.(exampledomainname).com

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










privacy (GDPR)