Changing DNS records on a Debian Linux Box - Newbie

We have inherited a company that has their public DNS records set up on a Deban GNU Linux box (v4.0).  I am not sure what DNS server they are running, however my guess is that it is BIND.  We just moved our website to a different host & need to know how to change the www. record to point to the new IP address.  Can someone please give me an idea of how to do this change?

Thanks
LVL 6
rustyrpageAsked:
Who is Participating?
 
Heem14Commented:
DNS on BIND is setup via text configuration files.

A good place to start is by typing:

whereis named

at the command line.

This should lead you to the location of the configuration file, usually /etc/named.conf

inside there you will see something like

options {
        directory "/var/named/";
};


that is the directory in which the conf files are stored.

Scrolling down in the conf will reveal to you the filename of the zone that you want to edit.


then.. simply go the directory in which those files are, and edit the one you need.

Dont forget to increment the serial number, or else it won't take.

Proper syntax for the serial number is YYYYMMDD##

BUT, it does not have to be that way. it can be just any number greater than what it was.




0
 
http:// thevpn.guruCommented:
cd /etc/bind/
or cd /etc/bind9/

You should find a file called db.yourhostname or something similar enter it you will see the www entry as an A or CNAME entry change it, then /etc/init.d/bind restart or /etc/init.d/bind9 restart.

It might be some time before your clients will go to the new www because there might be routers and or ISP around that have the old IP cached. To make sure ping www.yourdomianname.com from within your debian box.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.