[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

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
0
rustyrpage
Asked:
rustyrpage
1 Solution
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now