Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2014, 01:45 PM   #1
Registered: Oct 2013
Posts: 434

Rep: Reputation: Disabled
How to modiffy DNS zone file so it redirects to other IP?

Hello, please where are dns zone files on Linux CentOS or Linux Debian?

How can edit it so when there is website visitor, he is redirected to another server IP (something like temporary forwarding all requests to another identic server..?

This is sample file, i found ont he internet:
$TTL	86400 ; 24 hours could have been written as 24h or 1d
; $TTL used for all RRs without explicit TTL value
@  1D  IN  SOA (
			      2002022401 ; serial
			      3H ; refresh
			      15 ; retry
			      1w ; expire
			      3h ; minimum
       IN  NS ; in the domain
       IN  NS ; external to domain
       IN MX  10 ; external mail provider
; server host definitions
ns1    IN A  ;name server definition     
www    IN  A  ;web server definition
ftp    IN CNAME  ;ftp server definition
; non server domain hosts
bill   IN  A
fred   IN  A
How to modiffy it so it serves my intended purpose?
Old 02-20-2014, 07:04 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Not a networking question - Moved to Linux - Newbie.

You can't get help from the very limited amount of information you've given us, and a sample zone file really isn't any use to us.

If you want to update a DNS server, the actual software you've not defined - bind? maradns? powerdns? - you can usually just change the relevant A record and within 30 minutes all users will probably be hitting the new address. But from the extremely limited information you've given us, I'd be thinking there's really someone else better placed to deal with this at your end, or a different framework you should be using to change it. If this is some form of hosted service, maybe there's some web gui that will do this for you..??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which DNS zone file is the best? Altiris Linux - Newbie 5 07-14-2013 07:15 AM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
"Ignoring out-of-zone data" errors with my DNS Zone file zyzzogeton Linux - Networking 2 12-17-2009 08:51 AM
Dns Problem Loading The Zone File Error(zone File Not Found) ramineni Linux - Newbie 1 09-14-2008 08:36 AM
DNS Zone file help mnm_mc Linux - Networking 2 05-22-2007 09:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration