Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently set up Cent OS to act as a DNS server.
How do I set it up so that the 1st DNS server clients use is the internal DNS server & not the I.S.P's DNS server?
I have also entered my DNS server IP address in the /etc/resolv.conf file & set it so that its not overwritten upon a server reboot.
Many Thanks
Simon
My clients show my name server as the 1st DNS server.
If I ping my name server , the ping trace shows it still using the ISP's DNS servers.
I suspect that it may be acting as a Caching only server as opposed to being a master server on the local network.
I also found the following in the /etc directory:
lrwxrwxrwx 1 root named 52 Dec 23 10:58 /etc/named.caching-nameserver.conf -> /var/named/chroot//etc/named.caching-nameserver.conf
lrwxrwxrwx 1 root root 32 Jan 11 18:55 /etc/named.conf -> /var/named/chroot/etc/named.conf
lrwxrwxrwx 1 root named 42 Dec 23 10:58 /etc/named.rfc1912.zones -> /var/named/chroot//etc/named.rfc1912.zones
And in /var/named/chroot/etc/
-rwxr-xr-x 1 root named 433 Dec 23 18:39 191.168.1.zone
-rw-r--r-- 1 root root 3661 Jan 17 09:42 localtime
-rwxr-xr-x 1 root named 1586 Dec 23 08:38 named.210308
-rw-r----- 1 root named 1230 Nov 17 22:22 named.caching-nameserver.conf
-rw-r----- 1 root root 1230 Jan 17 09:26 named.caching-nameserver.conf.bak
-rw-r--r-- 1 root named 1835 Jan 17 09:59 named.conf
-rwxr-xr-x 1 root named 1733 Dec 23 09:16 named.conf_bak
-rwxr-xr-x 1 root named 1449 Dec 23 08:38 named.conf.bak
-rwxr-xr-x 1 root named 219 Dec 23 08:38 named.conf.rpmsave
-rw-r----- 1 root named 955 Nov 17 22:22 named.rfc1912.zones
-rwxr-xr-x 1 root named 76 Dec 23 09:42 rndc.key
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.