Koozali.org: home of the SME Server

Comprehensive config setprop list

Offline schmerold

  • *
  • 12
  • +0/-0
    • http://www.katy.com
Comprehensive config setprop list
« 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.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Comprehensive config setprop list
« Reply #1 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
...

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Comprehensive config setprop list
« Reply #2 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
« Last Edit: December 30, 2007, 02:14:38 AM by TrevorB »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Comprehensive config setprop list
« Reply #3 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.


Offline schmerold

  • *
  • 12
  • +0/-0
    • http://www.katy.com
Re: Comprehensive config setprop list
« Reply #4 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....

Offline schmerold

  • *
  • 12
  • +0/-0
    • http://www.katy.com
Re: Comprehensive config setprop list
« Reply #5 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.


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
dnscache apparently not working (Re: Comprehensive config setprop list)
« Reply #6 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

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Comprehensive config setprop list
« Reply #7 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
Regards,
William

IF I give advise.. It's only if it was me....