Create an entry for just the domain and be sure to add a dot to the end so it 
doesn't append the domain name:

nicaragon.com.  IN A 46.105.24.194
www     IN A 46.105.24.194

Without the dot the domain is appended so that nicargon.com without a dot would 
actually be seen as nicaragon.com.nicaragon.com.   With the dot it is seen 
simply as nicaragon.com.

www in the above is NOT completed with a dot so that it is actually seen as 
www.nicaragon.com.





-----Original Message-----
From: bind-users-bounces+jlightner=water....@lists.isc.org 
[mailto:bind-users-bounces+jlightner=water....@lists.isc.org] On Behalf Of Nico 
Aragón
Sent: Monday, October 17, 2011 6:59 AM
To: bind-users@lists.isc.org
Subject: Single machine VPS

Hello,

I'm new to Bind. My previous registrar (or was it the hosting
provider?) was so kind to manage DNS for me. But now I'm required to
configure a DNS server in the very same VPS that hosts the HTTP and
mail server.

I've managed to set it running and (apparently) working after reading
some quick tutorials and a good deal of trial/error. A little issue
persists: I'd like the domain to be reached through HTTP as
"nicoaragon.com", but it only works as "www.nicoaragon.com". The
examples are all about configuration with several machines, so I did
my best to adapt them. But I'm stuck now and a little afraid to touch
and lose what already works.

I'm using bind9 in ubuntu 11.04 server. A forwarder is set in the
options file. The rest of the configuration is like this:

-----------------------------------------------------------------------------------------------------
named.conf.local:

zone "nicoaragon.com" {
    type master;
    file "/etc/bind/zones/nicoaragon.com.zone";
};

zone "24.105.46.in-addr.arpa" {
    type master;
    notify no;
    file "/etc/bind/zones/rev.24.105.46.in-addr.arpa";
};

-----------------------------------------------------------------------------------------------------
nicoaragon.com.zone:

$TTL 604800

nicoaragon.com. IN SOA www.nicoaragon.com. root.nicoaragon.com. (
    2007031001
    28800
    3600
    604800
    38400
)

nicoaragon.com. IN NS www.nicoaragon.com.
IN A 46.105.24.194
www.nicoaragon.com. IN MX 10 www.nicoaragon.com.
nicoaragon.com. IN MX 10 www.nicoaragon.com.

www IN A 46.105.24.194

-----------------------------------------------------------------------------------------------------
rev.24.105.46.in-addr.arpa

$TTL 604800
@ IN SOA nicoaragon.com. root.nicoaragon.com. (
    2001180909 ; serial number
    3h         ; refresh
    15m        ; update retry
    3w         ; expiry
    3h )       ; minimum

@ IN NS www.
194 IN PTR www.nicoaragon.com.

-----------------------------------------------------------------------------------------------------

--
TIA,

    Nico Aragón
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users




Athena®, Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential 
information and is for the sole use of the intended recipient(s). If you are 
not the intended recipient, any disclosure, copying, distribution, or use of 
the contents of this information is prohibited and may be unlawful. If you have 
received this electronic transmission in error, please reply immediately to the 
sender that you have received the message in error, and delete it. Thank you.
----------------------------------

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to