Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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've got 2 dns servers running redhat 9 / Bind to provide DNS services to my network. I've been managing DNS entries manually on the master server by editing the zone files and named.conf in a text editor. This works fine for me, but the suits would like an easier preferably web based DNS manager installed on the server. Is there a good premade package for this, or is this something I will need to write?
I've written some software on sourceforge that allows you to both manage your bind DNS records in MySQL as well as use a PHP web interface to modify and push them using rndc reload (hot updating) and error checking with named_checkzone.
Webmin's great, unless the suits log in and realize that they can do everything- from managing firewall rules to bringing down SSH. Save, of course, you configure a special webmin user that's restricted only to the bind module.
I've run into the same problem at my company, and found that using Webmin was too much of a security risk and was really more than we wanted exposed via the web. Webmin is perfect for those who don't have the time or experience for more robust solutions.
And just to stay non-partisan, there are other software packages from Mice & Men and on SourceForge (like Dixie and NovaDNS and ProBIND - although a few of these either require cron jobs or are several years old) that will administer DNS without administering the whole box.
This script will try to check some aspects of your smbind configuration and point you to errors where ever it can find them. You need to edit config.php and read the INSTALL file first before you run this script.
Testing config.php...OK
Testing PEAR DB...OK
Testing Smarty...OK
Testing templates_c...OK
Testing path...OK
Testing conf directory...OK
Testing conf file...OK
Testing named-checkconf...OK
Testing named-checkzone...OK
Testing rndc...OK
Testing rndc execution...OK
server is up and running
Testing database connection...OK
Testing database SELECT from zones table...OK Testing database SELECT from users table...OK Testing database SELECT from records table...OK
Testing database INSERT into zones table...OK Testing database INSERT into users table...OK Testing database INSERT into records table...OK
Testing database UPDATE zones table...OK Testing database UPDATE users table...OK Testing database UPDATE records table...OK
Testing database DELETE FROM zones table...OK Testing database DELETE FROM users table...OK Testing database DELETE FROM records table...OK
Congratulations, your setup looks good. Please remember to add the following line to your named.conf:
include "/etc/smbind/smbind.conf";
However, when I just try to navigate to the actual smbind interface http://x.x.x.x
I get this error:
Fatal error: Call to undefined function: set_include_path() in /var/www/html/include.php on line 24
I'm thinking I must have the wrong version of php, or need additional packages or something, any ideas?
I'm running, a Redhat 9 system with php-4.2.2-17 installed.
I believe the error is due to the set_include_path()function only being present in php versions 4.3.0 and greater. I am having trouble finding/installing an rpm for php-4.3.0 for redhat 9. Any hints?
Do you know where the SMBIND software package stores it's users and passwords to log into the GUI? If the admin password were to be lost, where could it be changed or reset in the backend instead of in the SMBIND GUI?
-Thanks Karl
I've written some software on sourceforge that allows you to both manage your bind DNS records in MySQL as well as use a PHP web interface to modify and push them using rndc reload (hot updating) and error checking with named_checkzone.
Hey joelhop,
I don't know why I didn't get emailed about your other posts, but I apologize for being unresponsive. Did you figure out your issue with set_include_path()? That's not an issue I've ever seen before, but I have gotten the smbind to work with Red Hat 9...
Fortunately, your question about the lost username and password info is easier to answer... if you can access the MySQL database from the command line, poke around in the "users" table.
From here, you can add a new admin user by hand to restore access to the GUI:
insert into users (username, password, admin) values ('newadmin', md5('password'), ('yes');
i.e. Username: newadmin, Password: password
or, you can reset a password for an existing account:
update users set password=md5('newpassword') where user='admin';
Great work on smbind. I have a question. After adding my first zone and commiting changes, I notice it updates the file smbind.conf. By default,
the layout looks like this:-
zone "zone.com" {
type master;
file "zone.com";
};
This looks normal. What happens is when BIND is restarted, it is unable to locate zone.com. In config.php, 'path' and 'conf' is set to the following:
If I add a new zone and commit changes, smbind creates the zone in /var/named/db/zone.com and updates smbind.conf. But when BIND is restarted via rndc, it looks for zone.com in /var/named/ instead, causing the following error message to appear in syslog:
named[730]: zone zone.com/IN: loading master file zone.com: file not found
I'm going to take a wild guess and say that there's a mismatch between the directory you've specified in named.conf and the directory you've specified in smbind.conf.
Open up /etc/named.conf (or where ever it's located on your system) and check out the options{}; section's directory specification. This location tells named to look in this path for all unqualified-pathed zone files. As you might imagine, if you're using $_CONF['path'] = "/var/named/db/"; for smbind, you have to use options { directory "/var/named/db"; }; in named.conf so that they're consistent.
You may have some pre-canned zone files for 0.0.127.in-addr.arpa or localhost or hints that specify where your zone files are; you'd want smbind to point to this same place.
Also, you might want to run through the configtest.php script to make sure all the permissions appear correct, and that apache can write to /var/named/db to create your zone file when you click the Commit link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.