Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 configured a CENTOS 5.5 server with DHCP + DNS. The network environment contains clients to obtain IP dynamically and some amy be configured manually. Until noe I have not used any GUIs for the configuration.
Now I want to manually add some hosts to my DNS. Can this be done by directly adding the host names to data files (pointed by the f/w and rev zones)? Or should this be done differently?
What are the good DNS GUI tools available for CentOS?
I have run a DNS before but it has been a few years. I have never used a GUI so can't advise on that.
Yes you just edit the forward and reverse files, entering A, CNAME, PTR, and other relevant records.
Remember to increment the serial number when you edit the file!
Then restart named.
I could see names of dhcp clients in this file as well (added automatically when the clients got their names). Will I not be messing up with them if I do this manually? I ahve to be careful here, as I am playing with a live server.
Not sure about that, sorry! I didn't realize you had DHCP entries in there, though you did mention it. Wait for someone else to weigh in about the DHCP factor.
Dont know whether this is the correct way. I have just added the records manually and restarted the service 'named'. Though the service appeared to be started, I could not resolve any names from the network.
When I looked into the /var/log/messages, I saw the following error message:
Quote:
journal rollforward failed: journal out of sync with zone
Then I (instead of deleting,) moved the .jnl files to /tmp (with a plan to bring them back in case of failure) and restarted the named service. This time names got resolved correctly.
But what I see now is, for some machines, only reverse look up is added. No forward record. I am pretty sure that this used to work. Dont know whether this change has caused this. Does anybody know any way to refresh everything through the DHCPD or any other means?
In your zone files, there is a serial number near the top that looks like "2011031701". You have to increment that number before HUPping your named, or your changes won't be recognized. I make it reflect the date, and if I have to make more than one change in a day, it would be 2011031702, 2011031703, etc.
Buts I managed to get the name added to the zone file, as I mentioned (I also incremented the serial number). But, some of the machines have only got the reverse zone added. Even if I restart the network on the client machines, the names wont get added to the forward zone. That is my issue now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.