On 10/17/2011 5:59 AM, Nico Aragón wrote:
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.

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

Also make sure your webserver will serve up your website when asking for http://www.nicoaragon.com and for http://nicoaragon.com

Looks like your zone file is fine.  But to check it, run

dig axfr nicoaragon.com

and make sure the output matches your expectations.

Lyle

_______________________________________________
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