Link to home
Start Free TrialLog in
Avatar of rustyrpage
rustyrpage

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Heem14
Heem14

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.