[PLUG] Updating a DNS entry...
Ryan E. Helfter
reh@blacksoul.net
Sat, 26 Aug 2000 13:34:42 -0500 (EST)
Are you using bind 4 or bind 8?
here is a sample zone file for a bind 8 configuration... I'll break it
down in pieces...
db.xxx.xxx.xxx (reverse mapping) excepted name of file goes by this rule:
if your ip block is 128.210.11.xxx (example purdue block) the file would
be called db.128.210.11
this is the contents of the file:
;
; Reverse Address to host name mappings.
;
@ IN SOA www.repulsivebandwidth.com. netadmin.repulsivebandwidth.com. (
200008111 ; Serial
the serial number is important... its kept by networksolutions.com or
gandi.net (which ever you registered your domain with)
it generally accepted format is yyyymmddx (where x is the number of times
you have edited the file for that day)
my example of 200008111 means October 11th, 2000 (first edit that day)
600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum TTL (1 hour)
IN NS www.repulsivebandwidth.com.
IN NS dns02.fastweb.com.
; Set the MX record
IN MX 10 www.repulsivebandwidth.com.
; You cant reverse your dns because it already is from you DSL provider
; but this is an example
153 IN PTR www.repuslivebandwidth.com.
(the "." after www.repulsiebandwidth.com means "dont include domain name
at and of PTR record) i.e. in this, i could have just put:
153 IN PTR www
if I had put this:
153 IN PTR www.repuslivebandwidth.com
the nslookup of the ip would retuned:
www.repulsivebandwidth.com.repulsivebandwidth.com
-----------------------------------------------------------------------
this is the forward dns file.
it is usually just the name of the domain.com
;
; Address to host name mappings.
;
@ IN SOA www.repulsivebandwidth.com. netadmin.repulsivebandwidth.com. (
200008112 ; Serial
Serial number follows the same suit... But you notice that I edited the
file twice that day. i.e. the "2"
600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum TTL (1 hour)
IN NS www.repulsivebandwidth.com.
; IN NS dns02.fastweb.com.
; Set the MX record
IN MX 10 unused-240-187-153.ixpres.com.
; Define the hosts
www IN A 216.240.187.153
repulsivebandwidth.com. IN A 216.240.187.153
(again since i just have www (and not trailing ".") it is a shortcut for
www.respulsivebandwidth.com)
------------------------------------------------------------------
after you make your changes to the file and update your serial number,
just do a ps -ef | grep named
and give the named PID (process id) a HUP signal
i.e. kill -HUP 1645
reverse dns propagation around the world could take up to 24 hours or so,
if its a new host you are adding (i.e. not changing the hostname of an
already dns'd ip)
hope this helps... let me know if you got anymore questions...
On Fri, 25 Aug 2000, Shwim wrote:
> Date: Fri, 25 Aug 2000 19:18:47 -0500
> From: Shwim <shwim@purdue.edu>
> To: PLUG <plug@csociety.purdue.edu>
> Subject: [PLUG] Updating a DNS entry...
>
> I've never updated a DNS entry, can anyone tell me how to do this?
>
> Or at least point me to some good documentation?
>
> Manny
>
>
--
Ryan E. Helfter
reh@blacksoul.net
Black Soul Networks, LLC
--