The DNS files, where are located?


 
Thread Tools Search this Thread
Operating Systems Linux The DNS files, where are located?
# 1  
Old 03-02-2014
Lightbulb The DNS files, where are located?

Hello, please where are located DNS files on various linux distributions?
Mainly im interested in CentOS (RedHat) and Ubuntu (Debian).

I mean i will be changing IPs and i have registered nameservers on my domain registar and it points to OLD IP, so i need to know in which files to edit on various distros.. ?

After move, i assume i need to change IP in domain registar (or reduce some TTL?), then edit DNS files on my server, and there comes my question... Image
# 2  
Old 03-02-2014
/etc/named.conf contains the location of DNS zone files.
# 3  
Old 03-03-2014
Signal

/etc/named.conf
/etc/bind

does not exist, but my domain resolves and working

instead i found this:
Quote:
# ls /var/named/chroot/var/named
data localdomain.zone named.broadcast named.ip6.local named.zero
mydomainhere.com localhost.zone named.ca named.local slaves
Are there please any more locations/files i need to change so my websites work after Ip change?

Last edited by postcd; 03-03-2014 at 06:33 AM..
# 4  
Old 03-03-2014
On RHEL and it's downstream derivatives (CentOS, etc), BIND stores its configuration files in the following locations:
Code:
/etc/named.conf
    The configuration file for the named daemon 
/var/named/ 
    The named working directory which stores zone, statistic, and cache files

If you have a chrooted BIND setup, as configured by the bind-chroot package, the BIND service will run in the /var/named/chroot environment. All configuration files will be moved there. For example, named.conf will be located in /var/named/chroot/etc/named.conf, and so on.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Help with running a script on files located in subdirectories

Hello everyone, I'm am a newbie to coding so I am reaching out in hopes that I can get some help from this forum. I am trying to run the script below from a single directory, however the directory has many subfolders. In each of those subfolders is a file, uniquely named to that specific... (3 Replies)
Discussion started by: azurite
3 Replies

2. UNIX for Advanced & Expert Users

Linux command to show where bin files are located

I was having trouble remembering the linux command to show where bin files are located. I eventually figured it out from googling that it was "which". How to find command location in Linux? Since I saw a few other interesting commands like whereis and type it got me curious. Are there any... (5 Replies)
Discussion started by: cokedude
5 Replies

3. Shell Programming and Scripting

Comparing file ownership/permission and content of files located on two different servers

Hi All, can some one suggest me a tool to compare file ownership/permission and contents of files located at two different unix servers? Thanks, Pranav (1 Reply)
Discussion started by: Pranav Bhasker
1 Replies

4. Shell Programming and Scripting

HOW: Shell script accessing files located in individual logged in user.

Hi I have below scenario, I hope this could be possible, but as of now no idea how to implement this. Mount point in this location /abc/mp, and there will different users who will be executing one the file shell1.sh file located in /abs/mp, but every user will execute this shell1.sh file from... (1 Reply)
Discussion started by: shekharjchandra
1 Replies

5. Solaris

Where are the source files located in solaris (b 116)

Hi all, I would like to know the dir location where all the source files for various file systems are located(not the compiled ones)? I tried in /usr/src/uts , but thats as far as I can go. After this i have the i86pc but there are no .c files anywhere.... (Impossible) # find / -name *.c... (1 Reply)
Discussion started by: wrapster
1 Replies

6. Shell Programming and Scripting

Bash scripting to compare N number of files located in two directories

I want to compare "N" (around 2000+) number of huge files located in a directory A against "N" files located in a different directory using Bash scripting. Please help me with any scripts available. Thanks. (2 Replies)
Discussion started by: Sangtha
2 Replies

7. UNIX and Linux Applications

Where are the Areca and IPMI config files located

Hi, I'm trying to locate the config files that are installed on a Unix/Linux system that belong to programs called Areca and IPMI. Two different programs. The most information I can get from IPMI is that it may be version 1.11 from Supermicro and it's installed by a CD. I checked the CD and... (1 Reply)
Discussion started by: edomingox
1 Replies

8. UNIX for Advanced & Expert Users

DNS issue still not looking in files

anyone ever seen this problem with /etc/nsswitch.conf forcing the system to look in files then dns but the system ignores the files and goes off check the dn servers is there any further config I've missed ??? /etc/resolve.conf name servers >>>> boring IPS /etc/nsswitch.conf is set to... (5 Replies)
Discussion started by: kie
5 Replies

9. IP Networking

files for dns?

What file is it that you set your name server? in solaris 2.5.1 sparc 5 system. I've been working in linux and it's confusing sometimes bouncing back and forth between the two! So alike, and yet some things are different! THANK YOU (LOVE THIS FORUM) (2 Replies)
Discussion started by: kymberm
2 Replies

10. UNIX for Advanced & Expert Users

files of dns server

hello friends I installed sun solaris 8 for x86 pc, and I want know where is the files of configuration (path), the name of files, and the named of daemon. example: /etc/named.conf and the zones is /var/named, and the daemon is named....it's in linux system. I need want only the name of files,... (2 Replies)
Discussion started by: themask
2 Replies
Login or Register to Ask a Question