Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: schmerold on December 28, 2007, 09:57:25 PM

Title: Comprehensive config setprop list
Post by: schmerold on December 28, 2007, 09:57:25 PM
Is there a comprehensive config setprop list somewhere?

For example I want to change dhcpd to assign a different dns server to clients.

editing /etc/dhcpd.conf is an exercise in futility. I'm confident there must be some command I can feed setprop, but google hasn't found it and my random guesses haven't worked out.
Title: Re: Comprehensive config setprop list
Post by: raem on December 29, 2007, 05:27:52 AM
schmerold

http://wiki.contribs.org/DB_Variables_Configuration

Keep in mind that the code is constantly changing and the documentation may not always keep up with the code.
Review the applicable template fragments to determine the full extent of db variables.

The above is linked to from here
http://wiki.contribs.org/Category:Howto

and here
http://wiki.contribs.org/index.php?title=SME_Server:Documentation:Technical_Manual:Booklet
Title: Re: Comprehensive config setprop list
Post by: TrevorB on December 30, 2007, 02:09:29 AM
I want to change dhcpd to assign a different dns server to clients.
Have you tried the DNS Server settings in Domains panel of Server Manager?
Quote from: schmerold
editing /etc/dhcpd.conf is an exercise in futility. I'm confident there must be some command I can feed setprop, but google hasn't found it and my random guesses haven't worked out.
Code: [Select]
config show dhcpd will show you the current db config items set (which won't include dns server).

If you still want to do something not handled by the Domains panel in server-manager:
The fragments that are strung together to generate /etc/dhcpd.conf are found in the /etc/e-smith/templates/etc/dhcpd.conf directory. The one you are interested in is 25DomainNameServers.
Also look in the /etc/e-smith/templates-custom/etc/dhcpd.conf directory, as this is where local changes are held (unlikely that you have any there yet).

Then:
Code: [Select]
cp /etc/e-smith/templates/etc/dhcpd.conf/25DomainNameServer /etc/e-smith/templates-custom/etc/dhcpd.conf/25DomainNameServeredit this new file to either hardcode, or use a new config item for the domain-name-servers (look at 25DenyBootp for an example)
when dhcpd is restarted the /etc/dhcpd.conf file will be regenerated from these fragments (using your /etc/e-smith/templates-custom/etc/dhcpd.conf/25DomainNameServer instead of the standard one)

Good Luck
Trevor B
Title: Re: Comprehensive config setprop list
Post by: CharlieBrady on December 30, 2007, 03:51:08 AM
For example I want to change dhcpd to assign a different dns server to clients.

That's not a good idea. SME server's caching dns server can be configured to query whichever server(s) you wish. Having SME server and LAN clients querying different DNS servers (and getting different answers) will cause you problems.

Title: Re: Comprehensive config setprop list
Post by: schmerold on December 31, 2007, 04:24:11 PM
Yes, but I'm at my wit's end. I cannot get DJB's caching DNS server to work. For no apparent reason it quit working. The logs  say:
servfail "input/output error"

It's odd....
Title: Re: Comprehensive config setprop list
Post by: schmerold on December 31, 2007, 05:58:38 PM
I am beginning to wonder if there is a problem with the firewall.

Anyone know how to shutdown the firewall?

I tried "iptables -F" that didn't work. Lost access to the server is all I got for my efforts.

Title: dnscache apparently not working (Re: Comprehensive config setprop list)
Post by: CharlieBrady on December 31, 2007, 06:28:08 PM
Yes, but I'm at my wit's end. I cannot get DJB's caching DNS server to work. For no apparent reason it quit working. The logs  say:
servfail "input/output error"

That indicates that:

- logging is still working, so your disk doesn't seem to be full
- dnscache sent queries, but didn't get replies.

There are two separate dnscache log files - which one are you looking at?

Have you read the text which appears every time you post into this forum?

Quote

Don't report problems here
- Please report bugs and potential bugs in the bug tracker
Title: Re: Comprehensive config setprop list
Post by: william_syd on December 31, 2007, 11:53:00 PM
I am beginning to wonder if there is a problem with the firewall.

Anyone know how to shutdown the firewall?


Maybe...

db configuration setprop masq status disabled

signal-event remoteaccess-update